Created
March 29, 2012 17:32
-
-
Save carlosmcevilly/2240443 to your computer and use it in GitHub Desktop.
watir setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tags: scripting testing www script browser ruby automation webdev safari | |
# tags: watir | |
# update gem | |
sudo gem update --system | |
# check gem version | |
gem -v | |
# install safariwatir | |
sudo gem install safariwatir --no-ri --no-rdoc | |
# test it | |
$ irb | |
>> require "safariwatir" | |
=> true | |
>> browser = Watir::Safari.new | |
=> #<Watir::Safari:0x10e833858 @scripter=#<Watir::AppleScripter:0x10e8337e0 @app=app("/Applications/Safari.app"), @document=app("/Applications/Safari.app").documents[1], @appname="Safari", @js=#<Watir::JavaScripter:0x10e833808>, @typing_lag=0.08>> | |
>> browser.goto "http://watir.com" | |
=> nil | |
>> quit | |
$ | |
Then see examples on watir.com | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment