Hi,

I guess that the dialog steps aren't able to handle onbeforeunload which
wasn't supported at the time they've been added in WebTest.

Please open an issue for that.

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

A Vander wrote:
> 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>
> -----------------------------------------------------
> 
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to