- skumariActive particpant
- Posts : 13
Join date : 2012-03-14
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
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
- Tester Mark
- Posts : 6
Join date : 2012-03-10
Age : 109
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
- dkpune
- Posts : 6
Join date : 2012-03-14
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);
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);
- Sanjay SRegular Participant
- Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai
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
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
- skumariActive particpant
- Posts : 13
Join date : 2012-03-14
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
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
- Tester Mark
- Posts : 6
Join date : 2012-03-10
Age : 109
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
- Tester Mark
- Posts : 6
Join date : 2012-03-10
Age : 109
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
- Sanjay SRegular Participant
- Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai
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
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 SRegular Participant
- Posts : 34
Join date : 2012-02-10
Age : 36
Location : Chennai
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 ..
Are you all writing any scripts for image comparison separately ??? Pls help me guys .. its very urgent ..
- Can Selenium do image comparison tests; support mobile browsers; and other FAQs about Selenium
- What is the use of Selenium Core and Selenium Test Manager ? (N-Unit Procedures in VS 2010)
- Creating detail log for selenium command execution (Selenium RC Java client)?
- [Help] Problem of running selenium Testcase[Java Junit] with Selenium RC
- Selenium IDE generated testcase script is not working in Selenium Webdriver
Permissions in this forum:
You cannot reply to topics in this forum
|
|