Share
Go down
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Selenium storeallwindowsid

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

Re: Selenium storeallwindowsid

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

Hi Nellore

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

Re: Selenium storeallwindowsid

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

Dear Nellore

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

Re: Selenium storeallwindowsid

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

Share it I will look in it .

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

Hi

on 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

Re: Selenium storeallwindowsid

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