About Me

My photo
I Love Bugs! Yum! Yum!

Wednesday, January 19, 2011

When selenium doesn't recognize your new window

Wednesday, September 2, 2009

Try the foll. options
selenium.selectwindow(null)
selenium.selectwindow(windowtitle)
selenium.selectwindow(windowid)
selenium.selectwindow(windowname)

If none of the above works,
Do a getattribute on the link which is trying to open the new window
then do a open(link) or
openwindow(link) if you want it to open on a new window and give it a name so that you can reference it later.

No comments:

Post a Comment