commonwatir 1.7.1 → 1.8.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +14 -0
- data/VERSION +1 -1
- data/lib/watir/core_ext.rb +34 -0
- data/lib/watir.rb +1 -0
- metadata +14 -10
data/CHANGES
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
== Version X.X.X - 2011/XX/XX
|
2
|
+
|
3
|
+
=== IE improvements
|
4
|
+
|
5
|
+
* Improved speed of #click_no_wait by not loading RubyGems (Jarmo Pertman)
|
6
|
+
* Added check to maxlength so we don't clobber any incoming js events. (Charley Baker)
|
7
|
+
|
8
|
+
=== Firefox improvements
|
9
|
+
|
10
|
+
* Removed dependency for ActiveSupport, making it possible to use FireWatir with Rails 3 (Jarmo Pertman)
|
11
|
+
* Removed :waitTime option and try to handle better firefox startup (Jarmo Pertman)
|
12
|
+
|
1
13
|
== Version 1.7.1 - 2011/01/10
|
2
14
|
|
3
15
|
=== IE improvements
|
@@ -18,6 +30,8 @@ Whole Changelog is available at http://github.com/bret/watir/compare/v1.7.1...v1
|
|
18
30
|
* IE#wait waits now again until browser has a state of READYSTATE_COMPLETE due to strange timing issues. Closes http://jira.openqa.org/browse/WTR-466 (Jarmo Pertman)
|
19
31
|
* Added CSS3 selectors with usage like browser.text_field(:css => "input[name='text1']") (Jonas Tingeborn)
|
20
32
|
* Updated bundled version of AutoIt to 3.3.6.1. Closes http://jira.openqa.org/browse/WTR-440 (Jarmo Pertman)
|
33
|
+
Note: If you want to use this version of AutoIt, you'll need to manually uninstall all previously installed Watir and possibly manually installed AutoIt versions first.
|
34
|
+
When you run your Watir scripts, it will automatically install and use the new version.
|
21
35
|
|
22
36
|
=== Firefox improvements
|
23
37
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.0.rc1
|
@@ -0,0 +1,34 @@
|
|
1
|
+
class String
|
2
|
+
|
3
|
+
#
|
4
|
+
# "Watir::Span" => "Span"
|
5
|
+
#
|
6
|
+
|
7
|
+
def demodulize
|
8
|
+
gsub(/^.*::/, '')
|
9
|
+
end
|
10
|
+
|
11
|
+
#
|
12
|
+
# "FooBar" => "foo_bar"
|
13
|
+
#
|
14
|
+
|
15
|
+
def underscore
|
16
|
+
gsub(/\B[A-Z][^A-Z]/, '_\&').downcase.gsub(' ', '_')
|
17
|
+
end
|
18
|
+
|
19
|
+
#
|
20
|
+
# "Checkboxes" => "Checkbox"
|
21
|
+
# "Bodies" => "Body"
|
22
|
+
# "Buttons" => "Button"
|
23
|
+
#
|
24
|
+
def singularize
|
25
|
+
case self.downcase
|
26
|
+
when "checkboxes"
|
27
|
+
self.chop.chop
|
28
|
+
when "bodies"
|
29
|
+
self.chop.chop.chop + "y"
|
30
|
+
else
|
31
|
+
self.chop
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/watir.rb
CHANGED
@@ -8,6 +8,7 @@ require 'watir/waiter' # this will be removed in some future version
|
|
8
8
|
require 'watir/wait'
|
9
9
|
require 'watir/wait_helper'
|
10
10
|
require 'watir/element_extensions'
|
11
|
+
require 'watir/core_ext'
|
11
12
|
require 'watir/exceptions'
|
12
13
|
require 'watir/matches'
|
13
14
|
require 'watir/browser'
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonwatir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 977940510
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
- rc1
|
11
|
+
version: 1.8.0.rc1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Bret Pettichord
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-
|
19
|
+
date: 2011-02-25 00:00:00 -07:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
@@ -44,6 +45,7 @@ files:
|
|
44
45
|
- lib/watir/assertions.rb
|
45
46
|
- lib/watir/browser.rb
|
46
47
|
- lib/watir/browsers.rb
|
48
|
+
- lib/watir/core_ext.rb
|
47
49
|
- lib/watir/element_extensions.rb
|
48
50
|
- lib/watir/exceptions.rb
|
49
51
|
- lib/watir/matches.rb
|
@@ -122,12 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
125
|
none: false
|
124
126
|
requirements:
|
125
|
-
- - "
|
127
|
+
- - ">"
|
126
128
|
- !ruby/object:Gem::Version
|
127
|
-
hash:
|
129
|
+
hash: 25
|
128
130
|
segments:
|
129
|
-
-
|
130
|
-
|
131
|
+
- 1
|
132
|
+
- 3
|
133
|
+
- 1
|
134
|
+
version: 1.3.1
|
131
135
|
requirements: []
|
132
136
|
|
133
137
|
rubyforge_project: wtr
|