dialog steps aren't able to handle onbeforeunload?
--------------------------------------------------
Key: WT-527
URL: http://webtest-community.canoo.com/jira/browse/WT-527
Project: WebTest
Type: Bug
Versions: 3.0
Environment: windows xp sp3
webtest 3.0
Reporter: Avander
Hi webtesters,
I've been trying to verify a pop-up dialog using the expectDialogs element. I
tried a nested alert, confirm and prompt but the test always fails with an
'Expected property "myPopup" to be defined!' message.
The js goes like this:
-----------------------------------------------------
<script type="text/javascript">
window.onbeforeunload = closePrompt;
...
function closePrompt()
{
return "You must click the save button in order to save your data before
leaving the page.";
}
</script>
-----------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest