Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

selenium-ide

View previous topic View next topic Go down

selenium-ide

Post by skumari on 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

skumari
Active particpant
Active particpant

Posts : 13
Join date : 2012-03-14

Back to top Go down

Re: selenium-ide

Post by Tester Mark on 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

Tester Mark

Posts : 6
Join date : 2012-03-10
Age : 102

Back to top Go down

Re: selenium-ide

Post by dkpune on 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);

dkpune

Posts : 6
Join date : 2012-03-14

Back to top Go down

Re: selenium-ide

Post by Sanjay S on 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.)

Sanjay S
Regular Participant
Regular Participant

Posts : 34
Join date : 2012-02-10
Age : 29
Location : Chennai

Back to top Go down

Re: selenium-ide

Post by skumari on 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

skumari
Active particpant
Active particpant

Posts : 13
Join date : 2012-03-14

Back to top Go down

Re: selenium-ide

Post by Tester Mark on 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

Tester Mark

Posts : 6
Join date : 2012-03-10
Age : 102

Back to top Go down

Re: selenium-ide

Post by Tester Mark on 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

Tester Mark

Posts : 6
Join date : 2012-03-10
Age : 102

Back to top Go down

Re: selenium-ide

Post by Sanjay S on 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

Sanjay S
Regular Participant
Regular Participant

Posts : 34
Join date : 2012-02-10
Age : 29
Location : Chennai

Back to top Go down

Re: selenium-ide

Post by Sanjay S on 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

Sanjay S
Regular Participant
Regular Participant

Posts : 34
Join date : 2012-02-10
Age : 29
Location : Chennai

Back to top Go down

Re: selenium-ide

Post by Sponsored content Today at 6:38 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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