Hi SUPER...

Thank you for the hack...

This works...
require 'rubygems'
  require 'win32ole'
  require 'watir-webdriver'
  autoit = WIN32OLE.new('AutoITX3.Control')
  autoit.WinActivate('button')
  autoit.Send('{ENTER}')
  puts 'Finally It works'

Boy how this helps me out. it clicks on the button. I was trying to do
something similar before but was getting an Autoit error so tried to
re-install it. but this works so i am greatful for your help.

Ill still find out how the javascript box is constructed and try the
other ways e.g. alert box, prompt box etc...

thanks again guys... virtual chocolates getting passed around.

On Sep 13, 8:46 am, Usman Hussain <[email protected]> wrote:
> Hey Zeljko,
>
> I tried the first link but the error im getting is: no such file to
> load -- watir-webdriver/extensions/alerts (LoadError)
>
> Is this because of the version of Watir-WebDriver im using? Im using
> watir-webdriver 0.0.9
>
> Kind regards,
> Usman Hussain
>
> On Sep 10, 3:37 pm, Željko Filipin <[email protected]>
> wrote:
>
>
>
> > On Fri, Sep 10, 2010 at 4:31 PM, Usman Hussain <[email protected]>
> > wrote:
>
> > > Its a Javascript window... Its a pop up box with only an OK button...
>
> > I think this could help you:
>
> >http://stackoverflow.com/questions/3652582/alert-box-in-waitr-webdriv...
>
> > Željko
> > --
> > watir.com - community manager
> > watirpodcast.com - host
> > testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to