Problem with popup id in Selenium ruby gem

13 views
Skip to first unread message

Sakib Rijwan

unread,
May 15, 2011, 3:04:56 AM5/15/11
to seleni...@googlegroups.com
I am trying to get the focus on a popup id. I have tried following code --

popupid = @selenium.get_eval("{var windowId; for(var x in
this.browserbot.openedWindows) {windowId=x;} }")
@selenium.wait_for_pop_up(popupid,"3000")
@selenium.select_window(popupid)
@selenium.window_focus
@selenium.click("//input[@name='contactTos']");
@selenium.click("//input[@value='Insert checked contacts']");

If Selenium ruby gem is used to Run Selenium server, the id of popup
window shows wrong value and fails to run the rest of the test because
it does not find any window with that id

If Selenium jar file is used to run the Selenium server, the popup
window id is detected and test runs fine.

Is it a problem of Selenium ruby gem??Eagerly waiting for the answer


-Sakib

Reply all
Reply to author
Forward
0 new messages