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>
-----------------------------------------------------
--
View this message in context:
http://www.nabble.com/uncatchable-pop-up-for--lt-expectDialogs-gt--inside--tp23744023p23744023.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest