Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 History.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 results.html
Octocat-spinner-32 results.old.html
Octocat-spinner-32 safariwatir.gemspec
Octocat-spinner-32 safariwatir_example.rb
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
 git submodule update --init
 rake install

RUNNING SAFARIWATIR AGAINST WATIRSPEC

git clone git://github.com/redsquirrel/safariwatir.git
cd safariwatir
git submodule update --init
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.

Something went wrong with that request. Please try again.