Hi Hua,

I am running into the same problem now. Did you find any solution or 
workaround for this?

-- My Watir Script is able to click on Java script alerts (OK, Cancel etc) 
when the screen is not locked.
-- But if my Screen is locked the same script is not able to click on Java 
Script alerts.

When i leave for the day from work, i generally schedule my test scripts to 
run at a particular time in the night and will be checking the results in 
the morning. Since i have to lock my Screen while leaving from work, the 
script stops on Clicking the JavaScript alerts. Any help on this issue 
would be helpful.
 
Thanks,
Sridhar.

On Monday, 5 May 2008 10:52:06 UTC-6, Hua wrote:
>
> I have guessed that... but wondered if there is a way to get around. 
> maybe there is an alternative. 
>
> On May 5, 8:54 am, sai <[email protected]> wrote: 
> > I think it is because of AutoIt. Watir is using AutoIt to handle the 
> > pop ups. AutoIt in turn uses Windows DLL functions to send messages 
> > like click or getForground window to work on the javascript. When user 
> > has locked the system such messages are disabled as the user is 
> > theoretically can't work on the system when it is locked. So any such 
> > function will fail to work when system is locked. 
> > 
> > This problem is there in other tools also which uses Windows functions 
> > to work on the application. 
> > Hope this answers the question. 
> > 
> > Regards, 
> > Sai 
> > 
> > On May 4, 1:08 am, "Željko Filipin" <[email protected]> wrote: 
> > 
> > > This could help: 
> > 
> > >http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups 
> > 
> > > Željko 
> > > -- 
> > > ZeljkoFilipin.com

-- 
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