// Page Refresh
try{
Thread.sleep(2000);
} catch(Exception e) {}
String url = driver.getCurrentUrl();
driver.navigate().to(url);
try{
Thread.sleep(2000);
} catch(Exception e) {}
----------------------------------------------------------------------------------------------
// Click Button
driver.findElement(By.xpath("//button[contains(text(), 'OK')]")).click();
'Programming > Selenium' 카테고리의 다른 글
[Selenium] 튜토리얼 (0) | 2013.01.17 |
---|---|
Eclipse에서 Selenium 테스트 (0) | 2012.11.20 |
셀레니엄 명령어 (0) | 2012.11.20 |