How to work with multiple windows in Selenium
String s2[] =selenium.getAllWindowNames();
selenium.selectWindow(s2[1]);
//perform the actions
selenium.selectWindow("");//goes to the parent window
//do some actions
String s2[] =selenium.getAllWindowNames(); selenium.selectWindow(s2[1]); //perform the actions selenium.selectWindow("");//goes to the parent window //do some actions
No comments:
Post a Comment