Close a newly opened tab or window in Selenium IDE
问题 Using Selenium IDE with Windows7 and Firefox, an automatic click on a link may produce either a new tab or a new window. close() closes the original window or tab, not the new one. Maybe if I had the ID of the newly created one I could select it and then close it but I don't know how to do this automatically. I've asked on the Selenium forum and read the questions here, but they focus on WebDriver, not the IDE. Any help would be appreciated! Stig 回答1: I had same problem and found a solution: