Run the below script in selenium IDE: Command Target
selectWindow: Selects a popup window using a window locator; once a popup window has been selected, all commands go to that window. To select the main window again, use null as the target.