question about function "storeAllWindowIds"

View: New views
1 Messages — Rating Filter:   Alert me  

question about function "storeAllWindowIds"

by Hades_Pluto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:

<tr>
     <td>click</td>
     <td>xpath=//td[@id='addWidgetBtncenter']</td>
     <td></td>
</tr>
<tr>
     <td>storeAllWindowIds</td>
     <td>xpath=//td[@id='addWidgetBtncenter']</td>
     <td></td>
</tr>
<tr>
     <td>storeAllWindowNames</td>
     <td>xpath=//td[@id='addWidgetBtncenter']</td>
     <td></td>
</tr>
<tr>
     <td>storeAllWindowTitles</td>
     <td>xpath=//td[@id='addWidgetBtncenter']</td>
     <td></td>
</tr>
<tr>
     <td>waitForPopUp</td>
     <td></td>
     <td>30000</td>
</tr>
<tr>
     <td>selectPopUp</td>
     <td></td>
     <td></td>
</tr>


Any commands and suggestions are greatly appreciated !!!

Best,

Hades