Tuesday, November 13, 2007

Selenium popup windows

Selecting a popup window

The selectWindow method actually supports selecting by the title even if it has accents.  If you have more than one popup window to deal with the same name, I guess you need to write some JavaScript to get around it.

Closing a popup window

Although there is a "close" command in Selenium, it does not appear to work within Internet Explorer.  So the work around to this is to use

runscript window.close()

0 comments: