What version of Watir are you using?
On Monday, October 1, 2012 2:26:35 AM UTC-4, praveen kumar wrote:
>
> Hi All,
>
> There is a javascript pop-up. I am handling as shown below. It is working
> fine only if that window is enabled.
>
> If the machine is locked or moving to the another window while execution.
> Its not working. Is there any way to focus that window after pop up is
> enabled.
>
> $ie.wait_until{$ie.javascript_dialog.button('OK').enabled?}
> $ie.javascript_dialog.button('OK').click
>
> Please let me know your thoughts.
>
> Thanks,
> Praveen
>
--
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]