- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
Selenium storeallwindowsid
Sat Sep 26, 2009 1:32 am
Hi guys:
I have a question regarding to some functions: "storeAllWindowIds", "storeAllWindowNames" and "storeAllWindowTitles".
I am running a test case in firefox where there will be a pop-up window, I would like to capture the information for this pop-up window such as its id, name and title.
This pop-up window does not have any given title nor windowsid, can we still capture information for it?? I just want to be more familiar with how to use these functions and this will greatly give me more idea and help me with the IE 7 testing I am working on.
I have used these command with target of the button that triggers the pop-up window. (In this case, addWidgetBtncenter is the button to click on for add widget)
I have placed these function commands after the action of "click the add widget button" but before "waitforPopUp", please tell me if I am use these commands correctly in terms of their syntax or place order. (I have tried to place it after waitforpopup but before "selectopup", it still doesn't give me any information in the log)
The code is shown below:
click
xpath=//td[@id='addWidgetBtncenter']
storeAllWindowIds
xpath=//td[@id='addWidgetBtncenter']
storeAllWindowNames
xpath=//td[@id='addWidgetBtncenter']
storeAllWindowTitles
xpath=//td[@id='addWidgetBtncenter']
waitForPopUp
30000
selectPopUp
Any commands and suggestions are greatly appreciated !!!
Best,
Hades
I have a question regarding to some functions: "storeAllWindowIds", "storeAllWindowNames" and "storeAllWindowTitles".
I am running a test case in firefox where there will be a pop-up window, I would like to capture the information for this pop-up window such as its id, name and title.
This pop-up window does not have any given title nor windowsid, can we still capture information for it?? I just want to be more familiar with how to use these functions and this will greatly give me more idea and help me with the IE 7 testing I am working on.
I have used these command with target of the button that triggers the pop-up window. (In this case, addWidgetBtncenter is the button to click on for add widget)
I have placed these function commands after the action of "click the add widget button" but before "waitforPopUp", please tell me if I am use these commands correctly in terms of their syntax or place order. (I have tried to place it after waitforpopup but before "selectopup", it still doesn't give me any information in the log)
The code is shown below:
Any commands and suggestions are greatly appreciated !!!
Best,
Hades
- nellorekrishnakumarActive particpant
- Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD
Re: Selenium storeallwindowsid
Sat Sep 26, 2009 8:14 am
Hi Hades,
If u can update me whether any javascript activity is associated with that click loactor id .
If any javascript is associated with that locator id try to use comand runScript(locator id , javascript/event name).
Thanks,
Nellore Krishna Kumar
If u can update me whether any javascript activity is associated with that click loactor id .
If any javascript is associated with that locator id try to use comand runScript(locator id , javascript/event name).
Thanks,
Nellore Krishna Kumar
- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
Hi Nellore
Tue Sep 29, 2009 12:11 am
Dear Nellore:
Thank you for your post, I believe it is associated with a javascript. I am not sure how to use this command tho, can you please provide me some pointer? I am still new.. Thank you.
runScript(locator id, javascript/event name)? I think the locator id in my case is "addWidgetButton" since that is the button it will trigger the pop-up window. What about the event name here? Can you please help me out
Thank you again for your time, I really appreciated it.
Hades
Thank you for your post, I believe it is associated with a javascript. I am not sure how to use this command tho, can you please provide me some pointer? I am still new.. Thank you.
runScript(locator id, javascript/event name)? I think the locator id in my case is "addWidgetButton" since that is the button it will trigger the pop-up window. What about the event name here? Can you please help me out
Thank you again for your time, I really appreciated it.
Hades
nellorekrishnakumar wrote:Hi Hades,
If u can update me whether any javascript activity is associated with that click loactor id .
If any javascript is associated with that locator id try to use comand runScript(locator id , javascript/event name).
Thanks,
Nellore Krishna Kumar
- nellorekrishnakumarActive particpant
- Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD
Re: Selenium storeallwindowsid
Tue Sep 29, 2009 11:00 am
Hi Hades,
seleniumrunScript('//td[@id='addWidgetBtncenter','openResponsePopup('100');');
In above sample i gave openResponsePopup('100'); as javascript/function associated with any activity [onclick...]
If you can share html code that would of great help.
Thanks,
Nellore Krishna Kumar
seleniumrunScript('//td[@id='addWidgetBtncenter','openResponsePopup('100');');
In above sample i gave openResponsePopup('100'); as javascript/function associated with any activity [onclick...]
If you can share html code that would of great help.
Thanks,
Nellore Krishna Kumar
- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
Dear Nellore
Wed Sep 30, 2009 3:37 am
Dear Nellore:
I have it now in JUnit file written in java, would you like to take a look at it?
Thank you very much for your time !!
Best,
Hades
I have it now in JUnit file written in java, would you like to take a look at it?
Thank you very much for your time !!
Best,
Hades
nellorekrishnakumar wrote:Hi Hades,
seleniumrunScript('//td[@id='addWidgetBtncenter','openResponsePopup('100');');
In above sample i gave openResponsePopup('100'); as javascript/function associated with any activity [onclick...]
If you can share html code that would of great help.
Thanks,
Nellore Krishna Kumar
- nellorekrishnakumarActive particpant
- Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD
Re: Selenium storeallwindowsid
Wed Sep 30, 2009 10:59 am
Hi Hades,
Share it I will look in it .
Thanks,
Nellore Krishna Kumar
Share it I will look in it .
Thanks,
Nellore Krishna Kumar
- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
Hi
Wed Sep 30, 2009 9:27 pm
Dear Nellore
Since there are lot to mention about here so please allow me to send you an email to address this issue more detailed.
Thanks
Since there are lot to mention about here so please allow me to send you an email to address this issue more detailed.
Thanks
nellorekrishnakumar wrote:Hi Hades,
Share it I will look in it .
Thanks,
Nellore Krishna Kumar
- Can Selenium do image comparison tests; support mobile browsers; and other FAQs about Selenium
- Selenium Latest Version 2.5.0 Can't Record unlike Selenium 1.10.0
- Creating detail log for selenium command execution (Selenium RC Java client)?
- Configuring Selenium Grid to Selenium Web driver in Windows and Linux
- [Help] Problem of running selenium Testcase[Java Junit] with Selenium RC
Permissions in this forum:
You cannot reply to topics in this forum
|
|