Hi Guys,
Im using Watir-WebDriver with firefox on a MAC...
Ive searched google and tried a few solutions but am unable to solve
my problem...
The Issue:
I have created a script where there were dialogs appearing. as im
using Watir-Webdriver i managed to click on the OK buttons for example
by using AutoIT... the code i was writing looked something like this:
require 'rubygems'
require 'win32ole'
require 'watir-webdriver'
autoit = WIN32OLE.new('AutoITX3.Control')
autoit.WinActivate('button')
autoit.Send{'(ENTER)'}
This was then hitting the OK button on the javascript popup and i
could then continue my script.
NOW however i have been given a MAC and my tests are failing at this
step... I have taken a look at applescript and am having trouble with
getting it to work...
i tried to convert the code above to work for applescript and I got
this:
require 'rubygems'
require 'appscript'
require 'watir-webdriver'
include Applescript
app('button').activate
app('System Events').key.ENTER
BUT this does not seem to work. Is it possible for you to help me out
here?
do you need any more information? am i requiring the correct gem?
etc...
any helpto get this done would be much appreciated.
Kind regards,
Usman Hussain
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]