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
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Selenium storeallwindowsid Empty 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
avatar
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD

Selenium storeallwindowsid Empty 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
avatar
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Selenium storeallwindowsid Empty 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 Smile

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
avatar
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD

Selenium storeallwindowsid Empty 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
avatar
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Selenium storeallwindowsid Empty 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
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
avatar
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 38
Location : HYDERABAD

Selenium storeallwindowsid Empty Re: Selenium storeallwindowsid

Wed Sep 30, 2009 10:59 am
Hi Hades,

Share it I will look in it .

Thanks,
Nellore Krishna Kumar
avatar
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Selenium storeallwindowsid Empty 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 Smile

nellorekrishnakumar wrote:Hi Hades,

Share it I will look in it .

Thanks,
Nellore Krishna Kumar
Sponsored content

Selenium storeallwindowsid Empty Re: Selenium storeallwindowsid

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