Bill's analysis and recommendation is correct. This is problem is fixed in HEAD.

Bret

On 3/13/06, Bill Agee < [EMAIL PROTECTED]> wrote:
That particular unit test works fine for me on XP Pro SP2, however I
installed Watir using the win32 .exe installer.  From the look of
things you installed with the .gem, I wager?

It could be the autoit DLL is not registered on your system.  Perhaps
installing with the .gem doesn't handle that automagically in some
(all?) cases?  I've never used the Watir .gem so I can't say for sure.

Try manually registering the autoit DLL using regsvr32, and then try
the unit test again:

regsvr32 \ruby\lib\ruby\site_ruby\1.8\watir\AutoItX3.dll

Thanks
Bill


On 3/13/06, philip reed <[EMAIL PROTECTED]> wrote:
> I'm having trouble getting WaTiR to interact with authentication
> dialogs or _javascript_ dialogs ( i.e. "Are you sure?"-style messages).
> I've found that unittests/WindowLogonExample.rb also doesn't run for
> me, generating the following error on Windows XP sp 2 Home:
>
> C:\ruby\lib\ruby\gems\1.8\gems\watir- 1.4.1\unittests>ruby WindowLogonExample.rb
> Loaded suite WindowLogonExample
> Started
> ./../watir/WindowHelper.rb:5:in `initialize': unknown OLE server: `AutoItX3.Cont
> rol' (WIN32OLERuntimeError)
>    HRESULT error code:0x800401f3
>      Invalid class string      from ./../watir/WindowHelper.rb:5:in `initialize
> '
>        from WindowLogonExtra.rb:6
> .
> Finished in 333.296 seconds.
>
> 1 tests, 0 assertions, 0 failures, 0 errors
>
>
> (333.296 seconds was where I shut down MSIE manually; AFAICT the test
> would have hung indefinitely had I not done so.)
>
> My due diligence search of the archive found a bunch of references to
> this thread from August '05 that doesn't sound too certain that this
> test should be working now:
>
> http://rubyforge.org/pipermail/wtr-general/2005-August/002861.html
>
> I also found this thread from June that sounds like it was working then:
>
> http://rubyforge.org/pipermail/wtr-general/2005-June/002241.html
>
>
> My next step will be to take the latest CVS and see whether that works
> in my environment.   Meanwhile, can someone please confirm that this
> *SHOULD* work on a normal Windows XP installation, i.e. that I'm not
> spending time to troubleshoot a test that's known to fail for whatever
> reason?
>
> Thanks,
>
> Philip
>
> --
> Philip Reed, Developer
> Positronic Design
> http://www.positronicdesign.com
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to