Monday, August 27, 2012

Handling Multiple window or Pop-Up window using Selenium RC

Handling Multiple window or Pop-Up window using Selenium RC :

// select new window
selenium.selectWindow("Google Window"); 
//Do whatever you want to do on new window
selenium.click("link=submit");
//Close the newly opened window
Selenium.close(); 
//To choose the original window back.
selenium.selectWindow(null); 


No comments:

Post a Comment