Check this out:

http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIfixaWIN32OLERuntimeErrorwhenIuseAutoIt%3F

Hope that helps.

On Oct 26, 10:48 am, Shlomit Gazit <shlomitpatr...@gmail.com> wrote:
> I am getting this in the console, but it is not breaking the test, I
> just need manually to click on both OK buttons.
>
> 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/
> WindowHelper.rb:7:in `initialize'
>         from myClicker.rb:6:in `new'
>         from myClicker.rb:6
>
> On Oct 23, 8:59 am, Tiffany Fodor <tcfo...@comcast.net> wrote:
>
> > Hi!
>
> > Just in case you haven't seen this page:
>
> >http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> > Can you provide the error you're getting when the click doesn't work?
> > Is there a chance that the pop-up isn't loaded yet?
>
> > You could try troubleshooting with irb and try various commands to
> > click on the button.
>
> > -Tiffany
>
> > On Oct 23, 9:19 am,ShlomitGazit <shlomitpatr...@gmail.com> wrote:
>
> > > Any replies for this one?
>
> > > On Oct 2, 10:21 am,ShlomitGazit <shlomitpatr...@gmail.com> wrote:
>
> > > > For handling prompt popups, I am using myClicker.rb file:
> > > > ___________________________________________________
>
> > > > $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 ==
> > > > __FILE__
>
> > > > require 'watir/WindowHelper'
>
> > > > $helper = WindowHelper.new
> > > > $helper.push_confirm_button_ok()
>
> > > > I am calling this file like this:
> > > > __________________________
>
> > > > Thread.new { system("rubyw myClicker.rb") }
> > > > $ie.image(:name, /elete/).click
> > > > Thread.new { system("rubyw myClicker.rb") }
>
> > > > What I am trying to do above is deleting an object. I am getting first
> > > > popup asking if I really want to delete this and then a second popup
> > > > prompt to enter the reason. Both need to click 'ok' button.
>
> > > > It is working partly:
> > > > The problem is that most of the time I have to manually click on ok
> > > > button.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to