SessionId null in Selenium RC test after redirect
I'm testing an app, and after I've filled an extarnal payment service iframe I'm redirected to a payment confirmation screen inside the app I'm testing.
In selenium webdriver this confirmation windows is caught and al开发者_JAVA百科l is fine, instead in Selenium RC there's an unexpected behaviour that trigger the confirmation page to be opened in a new browser window and every further Selenium command on this gives a SessionId null exception.
How can i pass the sessionid to the new window or solve the problem in some way.. eg. select that window etc.
fist select the window using window id and den do your activities on det window. I thin this may help.
wait_for_pop_up(locator, "300000")
select_window(locator)
window_focus()
select_window(null)
精彩评论