Skip to content
Newer
Older
100644 73 lines (43 sloc) 1.89 KB
a5b269c @hmcgowan change first title in rdoc to match project name
hmcgowan authored Mar 27, 2012
1 = Watir Classic
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
2
691e989 @jarmo Improve readme.
jarmo authored Jul 28, 2012
3 Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers.
4 It supports your app no matter what technology it is developed in.
5 They support Internet Explorer on Windows, Firefox and Chrome on Windows, Mac and Linux and Safari on Mac.
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
6
7 Project Home:: http://watir.com
691e989 @jarmo Improve readme.
jarmo authored Jul 28, 2012
8 Source Code:: http://github.com/watir/watir-classic
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
9 Support:: http://watir.com/support
691e989 @jarmo Improve readme.
jarmo authored Jul 28, 2012
10 Gem:: https://rubygems.org/gems/watir-classic
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
11
316c61e @zeljkofilipin changed titles from UPPER CASE to Title Case
zeljkofilipin authored Sep 30, 2010
12 == Install
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
13
691e989 @jarmo Improve readme.
jarmo authored Jul 28, 2012
14 You have to install Ruby and RubyGems first.
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
15 gem update --system
098d59d @hmcgowan update doc for new name
hmcgowan authored Mar 27, 2012
16 gem install watir-classic
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
17
691e989 @jarmo Improve readme.
jarmo authored Jul 28, 2012
18 Detailed installation instructions are at http://watir.com/installation
19
316c61e @zeljkofilipin changed titles from UPPER CASE to Title Case
zeljkofilipin authored Sep 30, 2010
20 == Examples
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
21
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
22 Some examples from http://watir.com/examples
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
23
110abca @jarmo fixed README. Closes http://jira.openqa.org/browse/WTR-461
jarmo authored Oct 27, 2010
24 Loading Watir gem to drive Internet Explorer on Windows
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
25
fcbf309 @hmcgowan update require statements to point ot watir-classic
hmcgowan authored Mar 27, 2012
26 require 'watir-classic'
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
27
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
28 Starting a new browser & and going to our site
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
29
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
30 browser = Watir::Browser.new
31 browser.goto("http://bit.ly/watir-example")
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
32
33 Setting a text field
34
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
35 browser.text_field(:name => "entry.0.single").set "Watir"
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
36
37 Setting a multi-line text box
38
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
39 browser.text_field(:name => "entry.1.single").set "I come here from Australia. \n The weather is great here."
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
40
41 Setting and clearing a radio button
42
110abca @jarmo fixed README. Closes http://jira.openqa.org/browse/WTR-461
jarmo authored Oct 27, 2010
43 browser.radio(:value => "Watir").set
44 browser.radio(:value => "Watir").clear
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
45
46 Setting and clearing check boxes
47
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
48 browser.checkbox(:value => "Ruby").set
49 browser.checkbox(:value => "Python").set
50 browser.checkbox(:value => "Python").clear
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
51
52 Clicking a button
53
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
54 browser.button(:name => "logon").click
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
55
56 Clearing, getting and selecting selection list values
57
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
58 browser.select_list(:name => "entry.6.single").clear
59 puts browser.select_list(:name => "entry.6.single").options
60 browser.select_list(:name => "entry.6.single").select "Chrome"
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
61
62 Clicking a button
63
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
64 browser.button(:name => "submit").click
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
65
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
66 Checking for text in a page
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
67
110abca @jarmo fixed README. Closes http://jira.openqa.org/browse/WTR-461
jarmo authored Oct 27, 2010
68 puts browser.text.include?("Your response has been recorded.")
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
69
71cf82b @zeljkofilipin updated README file
zeljkofilipin authored Sep 30, 2010
70 Checking the title of a page
6a4b19b @marekj more rdoc info to README as landing page for gem rdoc
marekj authored Mar 10, 2010
71
9140844 @zeljkofilipin updated examples:
zeljkofilipin authored Oct 1, 2010
72 puts browser.title == "Thanks!"
Something went wrong with that request. Please try again.