开发者

SessionId null in Selenium RC test after redirect

开发者 https://www.devze.com 2023-04-13 09:54 出处:网络
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.

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)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号