napcs / safariwatir forked from redsquirrel/safariwatir
- Source
- Commits
- Network (15)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Feb 14 12:30:52 -0800 2009 | |
| |
README.rdoc | Wed Mar 04 19:27:35 -0800 2009 | |
| |
Rakefile | Wed Feb 18 06:11:47 -0800 2009 | |
| |
lib/ | ||
| |
safariwatir.gemspec | Wed Feb 18 06:11:47 -0800 2009 | |
| |
safariwatir_example.rb | Sat Feb 14 12:30:14 -0800 2009 |
README.rdoc
"There’s something eerily tingly about seeing a browser run by itself." twitter.com/swombat/status/1280692921
SafariWatir
- safariwatir.rubyforge.org
- rubyforge.org/mailman/listinfo/safariwatir-general
- twitter.com/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 WATIR’S CORE TESTS
# First, install the SafariWatir gem (see above) svn checkout https://svn.openqa.org/svn/watir/trunk cd trunk/watir cp unittests/options.yml.example unittests/options.yml # Edit unittests/options.yml and set browser: safari ruby unittests/core_tests.rb

