firewatir 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. data/firewatir.gemspec +6 -3
  5. metadata +15 -16
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
data/README.rdoc ADDED
@@ -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
data/firewatir.gemspec CHANGED
@@ -9,7 +9,8 @@ $__firewatir_source_patterns = [
9
9
  'CHANGES',
10
10
  'rakefile.rb',
11
11
  'VERSION',
12
- 'firewatir.gemspec'
12
+ 'firewatir.gemspec',
13
+ "README.rdoc"
13
14
  ]
14
15
 
15
16
  spec = Gem::Specification.new do |s|
@@ -39,10 +40,12 @@ spec = Gem::Specification.new do |s|
39
40
  s.add_dependency 'activesupport', '=2.3.9'
40
41
 
41
42
  s.has_rdoc = true
42
- s.rdoc_options <<
43
+ s.rdoc_options <<
43
44
  '--title' << 'FireWatir API Reference' <<
44
45
  '--accessor' << 'def_wrap=R,def_wrap_guard=R,def_creator=R,def_creator_with_default=R' <<
45
- '--exclude' << 'unittests|camel_case.rb|testUnitAddons.rb'
46
+ '--exclude' << 'unittests|camel_case.rb|testUnitAddons.rb' <<
47
+ '--main' << 'README.rdoc'
48
+ s.extra_rdoc_files = 'README.rdoc'
46
49
 
47
50
  # s.test_file = 'unittests/mozilla_all_tests.rb'
48
51
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firewatir
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
  - Angrez Singh
@@ -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
@@ -27,13 +26,12 @@ dependencies:
27
26
  requirements:
28
27
  - - "="
29
28
  - !ruby/object:Gem::Version
30
- hash: 977940599
29
+ hash: 3
31
30
  segments:
32
31
  - 1
33
32
  - 6
34
33
  - 6
35
- - rc2
36
- version: 1.6.6.rc2
34
+ version: 1.6.6
37
35
  type: :runtime
38
36
  version_requirements: *id001
39
37
  - !ruby/object:Gem::Dependency
@@ -58,8 +56,8 @@ executables: []
58
56
 
59
57
  extensions: []
60
58
 
61
- extra_rdoc_files: []
62
-
59
+ extra_rdoc_files:
60
+ - README.rdoc
63
61
  files:
64
62
  - lib/firewatir.rb
65
63
  - lib/firewatir/container.rb
@@ -181,6 +179,7 @@ files:
181
179
  - rakefile.rb
182
180
  - VERSION
183
181
  - firewatir.gemspec
182
+ - README.rdoc
184
183
  has_rdoc: true
185
184
  homepage: http://www.watir.com
186
185
  licenses: []
@@ -193,6 +192,8 @@ rdoc_options:
193
192
  - def_wrap=R,def_wrap_guard=R,def_creator=R,def_creator_with_default=R
194
193
  - --exclude
195
194
  - unittests|camel_case.rb|testUnitAddons.rb
195
+ - --main
196
+ - README.rdoc
196
197
  require_paths:
197
198
  - lib
198
199
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -207,14 +208,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
208
  required_rubygems_version: !ruby/object:Gem::Requirement
208
209
  none: false
209
210
  requirements:
210
- - - ">"
211
+ - - ">="
211
212
  - !ruby/object:Gem::Version
212
- hash: 25
213
+ hash: 3
213
214
  segments:
214
- - 1
215
- - 3
216
- - 1
217
- version: 1.3.1
215
+ - 0
216
+ version: "0"
218
217
  requirements:
219
218
  - Mozilla Firefox browser 1.5 or later.
220
219
  rubyforge_project: Watir