commonwatir 1.6.6.rc2 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +3 -1
  2. data/README.rdoc +101 -0
  3. data/VERSION +1 -1
  4. metadata +15 -17
  5. data/lib/commonwatir.rb +0 -3
data/CHANGES CHANGED
@@ -1,4 +1,4 @@
1
- == Version 1.6.6 - 2010/09/XX
1
+ == Version 1.6.6 - 2010/10/2
2
2
 
3
3
  === IE improvements
4
4
 
@@ -25,9 +25,11 @@
25
25
  === Cleanup & Maintenance
26
26
 
27
27
  * Some rdoc cleanup (marekj)
28
+ * README changes (Željko Filipin)
28
29
  * Removed Watir::Utils (Jarmo Pertman)
29
30
  * It is now possible to execute unit-tests within gems with `rake test` (Jarmo Pertman)
30
31
  * Don't output unnecessary information to stdout in FireWatir unit-tests (Željko Filipin)
32
+ * Update the 3 gem projects to each use the common readme file (Bret)
31
33
 
32
34
 
33
35
  Whole Changelog is available at http://github.com/bret/watir/compare/v1.6.5...v1.6.6
@@ -0,0 +1,101 @@
1
+ = Watir
2
+
3
+ Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It supports your app no matter what technology it is developed in. They support Internet Explorer on Windows, Firefox and Chrome on Windows, Mac and Linux and Safari on Mac.
4
+
5
+ Project Home:: http://watir.com
6
+ Source Code:: http://github.com/bret/watir
7
+ Support:: http://watir.com/support
8
+ Gem:: https://rubygems.org/gems/watir
9
+ Gem:: https://rubygems.org/gems/firewatir
10
+ Gem:: https://rubygems.org/gems/commonwatir
11
+ Gem:: https://rubygems.org/gems/safariwatir
12
+ Gem:: https://rubygems.org/gems/watir-webdriver
13
+ Gem:: https://rubygems.org/gems/celerity
14
+
15
+ == Install
16
+
17
+ You have to install Ruby and RubyGems first. To be able to drive Firefox you have to install Firefox add-on. Detailed installation instructions are at http://watir.com/installation
18
+
19
+ === Windows
20
+
21
+ To install Internet Explorer and Firefox driver:
22
+
23
+ gem update --system
24
+ gem install watir
25
+
26
+ === Mac
27
+
28
+ To install Firefox driver:
29
+
30
+ sudo gem update --system
31
+ sudo gem install firewatir
32
+
33
+ To install Safari driver, you have to install Xcode first and then:
34
+
35
+ sudo gem install rb-appscript
36
+ sudo gem install safariwatir
37
+
38
+ === Linux
39
+
40
+ To install Firefox driver:
41
+
42
+ sudo gem update --system
43
+ sudo gem install firewatir
44
+
45
+ == Examples
46
+
47
+ Some examples from http://watir.com/examples
48
+
49
+ Including Watir gem to drive Internet Explorer on Windows
50
+
51
+ require 'watir'
52
+
53
+ Including FireWatir gem to drive Firefox on Windows/Mac/Linux
54
+
55
+ require 'firewatir'
56
+
57
+ Starting a new browser & and going to our site
58
+
59
+ browser = Watir::Browser.new
60
+ browser.goto("http://bit.ly/watir-example")
61
+
62
+ Setting a text field
63
+
64
+ browser.text_field(:name => "entry.0.single").set "Watir"
65
+
66
+ Setting a multi-line text box
67
+
68
+ browser.text_field(:name => "entry.1.single").set "I come here from Australia. \n The weather is great here."
69
+
70
+ Setting and clearing a radio button
71
+
72
+ browser.radio(:value => "watir").set
73
+ browser.radio(:value => "watir".clear
74
+
75
+ Setting and clearing check boxes
76
+
77
+ browser.checkbox(:value => "Ruby").set
78
+ browser.checkbox(:value => "Python").set
79
+ browser.checkbox(:value => "Python").clear
80
+
81
+ Clicking a button
82
+
83
+ browser.button(:name => "logon").click
84
+
85
+ Clearing, getting and selecting selection list values
86
+
87
+ browser.select_list(:name => "entry.6.single").clear
88
+ puts browser.select_list(:name => "entry.6.single").options
89
+ browser.select_list(:name => "entry.6.single").select "Chrome"
90
+
91
+ Clicking a button
92
+
93
+ browser.button(:name => "submit").click
94
+
95
+ Checking for text in a page
96
+
97
+ puts browser.text.include? "Your response has been recorded."
98
+
99
+ Checking the title of a page
100
+
101
+ puts browser.title == "Thanks!"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.6.rc2
1
+ 1.6.6
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonwatir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940599
5
- prerelease: true
4
+ hash: 3
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
9
  - 6
10
- - rc2
11
- version: 1.6.6.rc2
10
+ version: 1.6.6
12
11
  platform: ruby
13
12
  authors:
14
13
  - Bret Pettichord
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-09-30 00:00:00 -06:00
18
+ date: 2010-10-02 00:00:00 -06:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -33,16 +32,15 @@ dependencies:
33
32
  version: "0"
34
33
  type: :runtime
35
34
  version_requirements: *id001
36
- description: Common library for Watir and FireWatir
35
+ description: Common library for Watir and FireWatir.
37
36
  email: bret@pettichord.com
38
37
  executables: []
39
38
 
40
39
  extensions: []
41
40
 
42
- extra_rdoc_files: []
43
-
41
+ extra_rdoc_files:
42
+ - README.rdoc
44
43
  files:
45
- - lib/commonwatir.rb
46
44
  - lib/watir/assertions.rb
47
45
  - lib/watir/browser.rb
48
46
  - lib/watir/browsers.rb
@@ -56,6 +54,7 @@ files:
56
54
  - LICENSE
57
55
  - CHANGES
58
56
  - VERSION
57
+ - README.rdoc
59
58
  - unittests/attach_to_existing_window_test.rb
60
59
  - unittests/browser_test.rb
61
60
  - unittests/buttons_test.rb
@@ -100,8 +99,9 @@ homepage: http://www.watir.com
100
99
  licenses: []
101
100
 
102
101
  post_install_message:
103
- rdoc_options: []
104
-
102
+ rdoc_options:
103
+ - --main
104
+ - README.rdoc
105
105
  require_paths:
106
106
  - lib
107
107
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -116,14 +116,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
- - - ">"
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
- hash: 25
121
+ hash: 3
122
122
  segments:
123
- - 1
124
- - 3
125
- - 1
126
- version: 1.3.1
123
+ - 0
124
+ version: "0"
127
125
  requirements: []
128
126
 
129
127
  rubyforge_project: wtr
@@ -1,3 +0,0 @@
1
- class CommonWatir
2
- VERSION = '1.6.5'
3
- end