Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
skumari
Active particpant
Active particpant
Posts : 13
Join date : 2012-03-14

selenium-ide Empty selenium-ide

Wed Mar 14, 2012 3:10 pm
Recently I started working on selenium, but I am facing problem at every step.

can anyone please tell me that how can I click on close button of the pop-up which do not have any title, so that I can close that pop-up window?

Its urgent

Thanks
avatar
Tester Mark
Posts : 6
Join date : 2012-03-10
Age : 109

selenium-ide Empty Re: selenium-ide

Wed Mar 14, 2012 8:24 pm
skumari wrote:Recently I started working on selenium, but I am facing problem at every step.

can anyone please tell me that how can I click on close button of the pop-up which do not have any title, so that I can close that pop-up window?

Its urgent

Thanks

You'll have to identify its name. Use the storeAllWindowNames command. This returns an array of names of all windows that the browser knows about. It should return a name something like selenium_blank93721. You should then be able to close it.

If you're dealing with multiple windows, it gets a bit trickier as you will have to access all of the values within the array. There is more on that topic here: old.nabble.com/Accessing-the-storeAllWindowIds-variable-td6240857.html#a6240857

I hope that this helps!

Mark
avatar
dkpune
Posts : 6
Join date : 2012-03-14

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 1:36 am
Mark,

I am also trying the same but its not working. I don't see the storeAllWindowNames but getAllWindowNames is available. Is this the same you refering? getAllWindowNames is giving me the value "[Ljava.lang.String;@1f630dc"
I am trying to see the values like below, am I doing anything wrong here?
String Wname[];
Wname = selenium.getAllWindowNames();
System.out.println(Wname);
avatar
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 11:27 am
Hi Kumari,

Could i know how you tackled this issue becoz i am facing the same knida issue.

Please help me out, like what command you used and at final have you got the correct name of the page ?

I need the help from you as Mark insisted me to enquire you reg the prob as u faced it.

I need command that has to be included in Selenium IDE to handle the Popup windows.

Thanks in Advance..

Sanjay S


Last edited by Sanjay S on Thu Mar 15, 2012 11:30 am; edited 1 time in total (Reason for editing : Included additional datas.)
avatar
skumari
Active particpant
Active particpant
Posts : 13
Join date : 2012-03-14

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 2:32 pm
Hi Guys,

Pls explain me where to use this command either at the end of the test case or at the beginning?

Instead of this command I used the command "selectPopUp". By using this command my popup get closed successfully but with error that "Current window or frame is closed! "

Samita
avatar
Tester Mark
Posts : 6
Join date : 2012-03-10
Age : 109

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 7:21 pm
dkpune wrote:Mark,

I am also trying the same but its not working. I don't see the storeAllWindowNames but getAllWindowNames is available. Is this the same you refering? getAllWindowNames is giving me the value "[Ljava.lang.String;@1f630dc"
I am trying to see the values like below, am I doing anything wrong here?
String Wname[];
Wname = selenium.getAllWindowNames();
System.out.println(Wname);

You should have the command, as it is described in the documentation (release.seleniumhq.org/selenium-core/0.8.0/reference.html). Make sure that you are running the most current version of the IDE, which is version 1.7.1
avatar
Tester Mark
Posts : 6
Join date : 2012-03-10
Age : 109

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 7:30 pm
skumari wrote:Hi Guys,

Pls explain me where to use this command either at the end of the test case or at the beginning?

Instead of this command I used the command "selectPopUp". By using this command my popup get closed successfully but with error that "Current window or frame is closed! "

Samita

There is a thread here that might be helpful for you: stackoverflow.com/questions/731817/how-to-i-change-focus-to-a-new-popup-tab-in-selenium
avatar
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 8:15 pm
Hi Samitha ..

Successfully i have closed the Popup Window too..
these are the ide commands wt i used.. i got the page title from the
'view page source' of the web page...

click
waitForPopUp
windowFocus
selectWindow
close
selectWindow : null
avatar
Sanjay S
Regular Participant
Regular Participant
Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai

selenium-ide Empty Re: selenium-ide

Thu Mar 15, 2012 8:20 pm
By the way, Guys!! How you all performing Image Comparison in Selenium.. Without image comparison how you all finding issues in the web pages..
Are you all writing any scripts for image comparison separately ??? Pls help me guys .. its very urgent .. Sad
Sponsored content

selenium-ide Empty Re: selenium-ide

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