The pop up window's title is changed while run a selenium test case

3 views
Skip to first unread message

loline

unread,
Jul 1, 2010, 12:03:56 AM7/1/10
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
Reply all
Reply to author
Forward
0 new messages