- mrhan
- Posts : 5
Join date : 2011-12-06
selenium how to deal alert
Sat Dec 10, 2011 6:52 pm
selenium how to deal alert
My code:
public void testTest() throws InterruptedException{
selenium.click("xpath=//td[2]/div/img");
http://Thread.sleep(2000);
if(selenium.isAlertPresent()){
selenium.getAlert();
}
}
Why can not?
My code:
public void testTest() throws InterruptedException{
selenium.click("xpath=//td[2]/div/img");
http://Thread.sleep(2000);
if(selenium.isAlertPresent()){
selenium.getAlert();
}
}
Why can not?
Permissions in this forum:
You cannot reply to topics in this forum