I believe in most cases, your script will run fine if no Windows user
is logged in.

However, in my experience, there can be problems with the
Watir::IE.attach method if no one is logged in to the machine.  I
believe this is because IE.attach uses the Shell.Application OLE
object, which behaves differently if it's not run from an interactive
user session.  Specifically, what I've seen is that attach isn't able
to get a list of open IE windows belonging to the shell unless it's
running as a logged-in user.

Anyway, as far as I know, all the other Watir methods should work fine
in this case.

Thanks
Bill

On 6/29/07, Justin <[EMAIL PROTECTED]> wrote:
> Thanks for the tip and I'll look into that - but it doesn't really answer my 
> question. Namely, can watir scripts run unattended from an "at" or "cron" job 
> without having to be logged in? Or does a Windows desktop have to be present 
> in order to launch the browser?
>
> Justin
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to