Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

selenium how to deal alert

View previous topic View next topic Go down

selenium how to deal alert

Post by mrhan on 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?

mrhan

Posts : 5
Join date : 2011-12-06

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum