public
Description: Watir for Safari
Homepage: http://wiki.openqa.org/display/WTR/SafariWatir
Clone URL: git://github.com/redsquirrel/safariwatir.git
Click here to lend your support to: safariwatir and make a donation at www.pledgie.com !
aesterline (author)
Tue Nov 10 19:24:48 -0800 2009
tcopeland (committer)
Tue Nov 10 20:40:07 -0800 2009
name age message
file .gitignore Mon Oct 19 12:39:05 -0700 2009 Added .idea directory to .gitignore. [richardlawrence]
file .gitmodules Tue Nov 10 20:40:07 -0800 2009 Add WatirSpec submodule. - Also added a sectio... [aesterline]
file History.txt Wed Oct 21 13:04:49 -0700 2009 Fixed date [Tom Copeland]
file README.rdoc Tue Nov 10 20:40:07 -0800 2009 Add WatirSpec submodule. - Also added a sectio... [aesterline]
file Rakefile Wed Oct 21 14:26:34 -0700 2009 Oops, I didn't use echoe, just build the gem wi... [Tom Copeland]
directory lib/ Tue Nov 10 15:18:39 -0800 2009 Changed HtmlElement.name to be HtmlElement.elem... [aesterline]
file safariwatir.gemspec Tue Oct 20 10:53:05 -0700 2009 Prepping for 0.3.7 [Tom Copeland]
file safariwatir_example.rb Sat Feb 14 12:30:14 -0800 2009 Moving code to lib/ and adding Watir::Exception... [caius]
directory spec/ Tue Nov 10 20:40:07 -0800 2009 Add WatirSpec submodule. - Also added a sectio... [aesterline]
README.rdoc

"There’s something eerily tingly about seeing a browser run by itself." twitter.com/swombat/status/1280692921

SafariWatir

DESCRIPTION:

We are putting Watir on Safari. The original Watir (Web Application Testing in Ruby) project supports only IE on Windows. This project aims at adding Watir support for Safari on the Mac.

Requirements

Mac OS X running Safari. Some features require you to turn on "Enable access for assistive devices" in System Preferences > Universal Access.

SYNOPSIS:

  require 'rubygems'
  require 'safariwatir'

  browser = Watir::Safari.new
  browser.goto("http://google.com")
  browser.text_field(:name, "q").set("obtiva")
  browser.button(:name, "btnI").click
  puts "FAILURE" unless browser.contains_text("software")

INSTALL:

  [sudo] gem install safariwatir

 or

  git clone git://github.com/redsquirrel/safariwatir.git
  cd safariwatir
  rake install

RUNNING SAFARIWATIR AGAINST WATIRSPEC

  git clone git://github.com/redsquirrel/safariwatir.git
  cd safariwatir
  spec spec

CONTRIBUTING:

WatirSpec is the emergent standard for the Watir API. We do not currently support all of the functionality described by WatirSpec. A good way to contribute would be to fix a few failing specs as defined by WatirSpec. See "Running SafairWatir Against WatirSpec" to get started.