Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (33 sloc) 1.355 kB
68a8eda @redsquirrel Sharing some love from the twitterverse
authored
1 "There's something eerily tingly about seeing a browser run by itself."
2 http://twitter.com/swombat/status/1280692921
3
d42d82b Adding README, ensuring gemspec works
Dave Hoover authored
4 = SafariWatir
5
6 * http://safariwatir.rubyforge.org
7 * http://rubyforge.org/mailman/listinfo/safariwatir-general
8 * http://twitter.com/SafariWatir
9
10 == DESCRIPTION:
11
749c1c3 @redsquirrel Pretty-fying the README a little.
authored
12 We are putting Watir on Safari.
13 The original Watir (Web Application Testing in Ruby) project supports only IE on Windows.
14 This project aims at adding Watir support for Safari on the Mac.
d42d82b Adding README, ensuring gemspec works
Dave Hoover authored
15
2c58286 @caius Adding requirements section to README
caius authored
16 == Requirements
17
18 Mac OS X running Safari. Some features require you to turn on "Enable access for assistive devices" in System Preferences > Universal Access.
19
20
d42d82b Adding README, ensuring gemspec works
Dave Hoover authored
21 == SYNOPSIS:
22
2628e5f @redsquirrel Little README tweak
authored
23 require 'rubygems'
24 require 'safariwatir'
25
26 browser = Watir::Safari.new
27 browser.goto("http://google.com")
28 browser.text_field(:name, "q").set("obtiva")
29 browser.button(:name, "btnI").click
30 puts "FAILURE" unless browser.contains_text("software")
d42d82b Adding README, ensuring gemspec works
Dave Hoover authored
31
32 == INSTALL:
33
34 [sudo] gem install safariwatir
35
36 or
37
38 git clone git://github.com/redsquirrel/safariwatir.git
39 cd safariwatir
16e3ec3 @caius Updating install instructions in readme
caius authored
40 rake install
23d0fb4 @redsquirrel Documenting how to run SafariWatir against the Watir unit test suite.
authored
41
42 == RUNNING SAFARIWATIR AGAINST WATIR'S CORE TESTS
43
44 # First, install the SafariWatir gem (see above)
45 svn checkout https://svn.openqa.org/svn/watir/trunk
97f8459 @redsquirrel Slight tweak to test instructions
authored
46 cd trunk/watir
23d0fb4 @redsquirrel Documenting how to run SafariWatir against the Watir unit test suite.
authored
47 cp unittests/options.yml.example unittests/options.yml
48 # Edit unittests/options.yml and set browser: safari
49 ruby unittests/core_tests.rb
Something went wrong with that request. Please try again.