loline
unread,Jul 1, 2010, 12:03:56 AM7/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi,
I have a problem with testing a pop up window. My test case is as
followings.
<tr>
<td>open</td>
<td>/xxx/yyy.htm</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//button</td>
<td></td>
</tr>
When [//button] is clicked, a pop up window will be opened.
The relevant part is as followings.
<SCRIPT language=JavaScript>
function OpenDialog(url, title){
var dlg = window.open(url, title,
'scrollbars=yes,resizable=yes,minimize:yes,maximize:yes');
dlg.focus();
};
</SCRIPT>
<button onClick="OpenDialog('../aaa/bbb/ccc.html', 'dialogTitle')">
</button>
When I run the selenium test case, the pop up window's title will be
change
to "NO_FLICKER". But if I click the button directly (without running
the test
case), the title is displayed correctly.
It is not a critical problem, but it is better to solve it if it is
possible.
Because I don't know java script so much, I hope to get your help.
Thanks,
Loline