|
|
|
sorry if this is the wrong place for this question, but i'm trying to select a popup window using the following:
<tr> <td>selectWindow</td> <td>myWindoid</td> <td>&NBSP</td> </tr> but every time i run the test i get "Window does not exist" Background: when a user selects "signout" on the Site Under Test a pop up window is launched to tell the user they've signed out. Where can I find the "ID" of this window? I thought from the source below that the ID would be myWindoid: function signout(){ if (window.screenLeft) { var x_start = window.screenLeft + 310; } else if (window.screenX) { var x_start = window.screenX + 310; } else { var x_start = 0; } if (window.screenTop) { var y_start = window.screenTop - 75; } else if (window.screenY) { var y_start = window.screenY - 75; } else { var y_start = 0; } myWindoid = window.open('dsp_status.php?lang=en&signout=true', 'windoid', 'width=239,height=163,left=' + x_start + ',top=' + y_start + 'resizable=no,location=no,toolbar=no,scrollbars=no,menubar=no,status=no'); window.location.href = 'http://cbb.by.boeing/PortalManager/PortalInterface?Action=logout&lang=en'; if (window.myWindoid){ myWindoid.close(); } } What am I doing wrong? Thanks, Ken kenmizell@gmail.com BTW feel free to flame me, but i've sent mail to the selenium-users@lists.public.thoughtworks.org alias and gotten no reply on three seperate occasions and i also don't see my question in the daily digest email either. |
|||||||||||||||||||||||||||||||||||||||||||||
| SelectWindow | popup1.popup2 | |
The second popup window can be selected.