Share
Go down
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 30
Location : Chennai

How to close the Popup Window in Selenium IDE ????

on Fri Mar 09, 2012 5:06 pm
How to close the Popup Window in Selenium IDE?
Can i know the Selenese Commands for the same also i am unable to find the name of the Popup window that opens..
I get this if i run the same..

[warn] Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank48549

So i have substituted '
selenium_blank48549' in the windows name.. but every-time when i run i get different windows name and then shows error. What would be the solution for this ? Anybody there to help me out .. confused
Tester Mark
Posts : 6
Join date : 2012-03-10
Age : 103

Re: How to close the Popup Window in Selenium IDE ????

on Thu Mar 15, 2012 12:17 am
Sanjay S wrote:How to close the Popup Window in Selenium IDE?
Can i know the Selenese Commands for the same also i am unable to find the name of the Popup window that opens..
I get this if i run the same..

[warn] Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank48549

So i have substituted '
selenium_blank48549' in the windows name.. but every-time when i run i get different windows name and then shows error. What would be the solution for this ? Anybody there to help me out .. confused

The window name changes most every time. To capture the correct name, use the storeAllWindowNames command. Skumari had a similar problem here: seleniumforum.forumotion.net/t1048-selenium-ide

I hope this helps!

Mark
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 30
Location : Chennai

Re: How to close the Popup Window in Selenium IDE ????

on Thu Mar 15, 2012 11:24 am
Ya thank you so much Mark.

But could i know where exactly the command has to be included.

As i have used the command in possible places but i couldnt able to get the correct name of the page.
Tester Mark
Posts : 6
Join date : 2012-03-10
Age : 103

Re: How to close the Popup Window in Selenium IDE ????

on Thu Mar 15, 2012 7:13 pm
I would use it after your new window has opened. I assume that you click on a button or link that causes the window pop-up to open, so put it there. That way you can identify the window name and then close it.

I hope this helps!

Mark
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 30
Location : Chennai

Re: How to close the Popup Window in Selenium IDE ????

on Thu Mar 15, 2012 7:19 pm
Thanks..
Mark, i got the title of the page window from it's 'View Page Source' and successfully i closed the Window Popup.. Smile
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 30
Location : Chennai

Re: How to close the Popup Window in Selenium IDE ????

on Tue Mar 27, 2012 4:00 pm
Hie Friends,

Could someone tell me like how to handle this kinda pop-up. I wanna either cancel or click on ok. Please tell me wt commands can be given in Selenium IDE in order to proceed with the same.








Thanks,
Sanjay S
Sponsored content

Re: How to close the Popup Window in Selenium IDE ????

Back to top
Permissions in this forum:
You cannot reply to topics in this forum