Saturday, March 13, 2010

Locating Pop-Up Windows in Selenium IDE

Here's a good article about handling pop-up windows. This is for pop-up browser windows, not modal windows.

Basically, you have to '''selectWindow''' to select the popup window and execute commands on that window. To return to the main window, use the command '''selectWindow(null)'''. This command only works if the browser only has one tab open (which will be the main window's tab). If multiple tabs are open in the browser, Selenium will error.