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.