Close a newly opened tab or window in Selenium IDE
I had same problem and found a solution:
- click on link that opens the new tab
- add command
waitForPopUp
- set focus to new tab via command
selectPopUp
- make your verifications or other commands regarding to your content in new tab
- use command
close
to close tab - use command
selectWindow
to set focus to the old window
Screenshot of my Selenium IDE commands:
That works for me.
Use selectWindow(windowID)
command to switch to new window in Se IDE. You can select new window by its windowID/name/title.
Hope this helps...
Agreed with surya use selectWindow(windowID), you can get the window title by right click on the page check the option verifyTitle and in front of that you have your Title. Hope it helps out.