I run my selenium rc test in Eclipse using TestNG. I have a link that is trying to open a new browser page. How can I choose this new page to work? I am using this code:
selenium.selectWindow("name=NewPage");
however, he says the page was not found. I am also trying to determine page ids or headings using this code:
String[] wins = selenium.getAllWindowIds(); for (String s : wins) System.out.println("win: " + s);
It does not detect my new open window:
win: MainPage win:
If selenium.getAllWindowNames()
, I get win: selenium_main_app_window win: selenium_blank65815
.
I am writing this code selenium.selectWindow("name=blank99157");
, but getting an error - ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ide.html#alerts-popups-and-multiple-windows for potential workarounds.
source share