I'm trying to add a bring_to_front() to Bret's 'Pragmatic Bookshelf'
example from the Watir training class.

I''m running watir-1.6.2 on XP using IE6.

All goes well until I try to stick in a bring_to_front() command as
follows (these are the opening lines of the script):

   require 'rubygems'
   require 'watir'

   #Link to Store
   browser = Watir::Browser.start('http://localhost:3000/store')
   browser.bring_to_front()

The addition of browser.bring_to_front() causes the following error:

>ruby PragmaticBookshelfExercise.rb
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
`initialize': unknown OLE server:
`AutoItX3.Control' (WIN32OLERuntimeError)
    HRESULT error code:0x800401f3
      Invalid class string
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
113:in `new'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
113:in `autoit'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
425:in `autoit'
        from C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
413:in `bring_to_front'
        from PragmaticBookshelfExercise.rb:6
>Exit code: 1

Looking for answers or ideas.  Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to