views:

498

answers:

2

While recording through Selenium IDE, When a pop up window opens then it is not getting recorded. "At the tine of executing an error message is displayed...Please help me out

A: 

Unfortunately Selenium IDE record/replay doesn't always record everything. It tries it best to do that but if there is an AJAX call it may not record this.

Best practise is to use the record to get a the main body of the test and then adapt it to handle the parts that it missed

I suggest manually adding those extra lines to your tests.

AutomatedTester
A: 

If that pop up window has name, like opening from javascript window.open(URL, name). Then it is possible to add the command to check the content of the popup. Like following command: waitForPopUp | winId | 30000 selectWindow | winId ... close

However, if the window has no name, like opened from <a target="_blank"> then you are out of luck.

Go to http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-HowdoIworkwithapopupwindow%3F for further details.

Ding-Yi Chen