On Oct 19, 1:44 am, Matt <[email protected]> wrote:
> I can get the example working, but when I apply it to my own page, it
> simply hangs. Then when I close the ruby prompt I'm given the message:
> Exit code: -1073741510
>
> Currently using:
>
> $browser.button(:value, "Button to press").click
> $browser.javascript_dialog.button('OK').click
>

If your dialog looks like the first example on this page
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups

Then you might need to use .click_no_wait  when clicking the element
which invokes that dialog (just as in the example code given)
otherwise the script could be busy waiting for the browser to report
that it is done loading a new page (in response to the click), and may
never execute the line that tries to click the OK button in the
dialog.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to