operawatir 0.4.1.pre3-jruby → 0.4.1.pre4-jruby
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +2 -2
- data/VERSION +1 -1
- data/lib/operawatir.rb +6 -0
- data/lib/operawatir/browser.rb +3 -1
- data/lib/operawatir/helper.rb +1 -1
- data/lib/operawatir/preferences.rb +0 -7
- metadata +33 -4
data/CHANGES
CHANGED
@@ -7,8 +7,8 @@ v0.4.1.pre3 2011-03-14
|
|
7
7
|
SPARTAN tests. Related to WTR-260. (andreastt)
|
8
8
|
|
9
9
|
* :selector has now been added as a basic type in Watir 2
|
10
|
-
compatibility mode (e.g. element(:
|
11
|
-
:css. Added method Compat::Collection#find_elements_by_selector as
|
10
|
+
compatibility mode (e.g. element(:selector, 'foo')). This is aliased
|
11
|
+
to :css. Added method Compat::Collection#find_elements_by_selector as
|
12
12
|
alias to Collection#find_by_css. (andreastt)
|
13
13
|
|
14
14
|
* Element#get_hash is now alias to Element#visual_hash for backwards
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.1.
|
1
|
+
0.4.1.pre4
|
data/lib/operawatir.rb
CHANGED
@@ -22,6 +22,12 @@ include_class com.opera.core.systems.QuickWidget
|
|
22
22
|
|
23
23
|
$KCODE = 'u' # UTF-8 support
|
24
24
|
|
25
|
+
class Object
|
26
|
+
def truthy?
|
27
|
+
self && [true, 'true', 'yes', 'y', '1', 1].include?(self)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
25
31
|
# TODO This should be replaced when we decide upon a better way of
|
26
32
|
# enabling the Watir 3 API.
|
27
33
|
module OperaWatir
|
data/lib/operawatir/browser.rb
CHANGED
@@ -202,9 +202,11 @@ private
|
|
202
202
|
s.setAutostart false if self.settings[:manual]
|
203
203
|
s.setOperaLauncherBinary self.settings[:launcher] if self.settings[:launcher]
|
204
204
|
s.setOperaBinaryLocation self.settings[:path] if self.settings[:path]
|
205
|
-
|
205
|
+
# FIXME: OPERA_ARGS will be moved to OperaDriver soon.
|
206
|
+
s.setOperaBinaryArguments ENV['OPERA_ARGS'].to_s + ' ' + self.settings[:args].to_s # if self.settings[:args]
|
206
207
|
s.setNoQuit true if self.settings[:no_quit]
|
207
208
|
s.setUseOperaIdle false if !self.settings[:opera_idle]
|
209
|
+
s.setUseOperaIdle true if ENV['OPERA_IDLE'].truthy?
|
208
210
|
}
|
209
211
|
end
|
210
212
|
|
data/lib/operawatir/helper.rb
CHANGED
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 4
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.4.1.
|
9
|
+
- pre4
|
10
|
+
version: 0.4.1.pre4
|
11
11
|
platform: jruby
|
12
12
|
authors:
|
13
13
|
- Andreas Tolf Tolfsen
|
@@ -18,12 +18,13 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-03-
|
21
|
+
date: 2011-03-17 00:00:00 +01:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: bundler
|
26
26
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
27
28
|
requirements:
|
28
29
|
- - ~>
|
29
30
|
- !ruby/object:Gem::Version
|
@@ -38,6 +39,7 @@ dependencies:
|
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
40
|
name: jeweler
|
40
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
41
43
|
requirements:
|
42
44
|
- - ">="
|
43
45
|
- !ruby/object:Gem::Version
|
@@ -50,6 +52,7 @@ dependencies:
|
|
50
52
|
- !ruby/object:Gem::Dependency
|
51
53
|
name: BlueCloth
|
52
54
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
53
56
|
requirements:
|
54
57
|
- - "="
|
55
58
|
- !ruby/object:Gem::Version
|
@@ -64,6 +67,7 @@ dependencies:
|
|
64
67
|
- !ruby/object:Gem::Dependency
|
65
68
|
name: yard
|
66
69
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
67
71
|
requirements:
|
68
72
|
- - ">="
|
69
73
|
- !ruby/object:Gem::Version
|
@@ -76,6 +80,7 @@ dependencies:
|
|
76
80
|
- !ruby/object:Gem::Dependency
|
77
81
|
name: mongrel
|
78
82
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
79
84
|
requirements:
|
80
85
|
- - ">="
|
81
86
|
- !ruby/object:Gem::Version
|
@@ -90,6 +95,7 @@ dependencies:
|
|
90
95
|
- !ruby/object:Gem::Dependency
|
91
96
|
name: sinatra
|
92
97
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
93
99
|
requirements:
|
94
100
|
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
@@ -103,6 +109,7 @@ dependencies:
|
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: rr
|
105
111
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
106
113
|
requirements:
|
107
114
|
- - ">="
|
108
115
|
- !ruby/object:Gem::Version
|
@@ -115,6 +122,7 @@ dependencies:
|
|
115
122
|
- !ruby/object:Gem::Dependency
|
116
123
|
name: clipboard
|
117
124
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
118
126
|
requirements:
|
119
127
|
- - ">="
|
120
128
|
- !ruby/object:Gem::Version
|
@@ -127,6 +135,7 @@ dependencies:
|
|
127
135
|
- !ruby/object:Gem::Dependency
|
128
136
|
name: rspec
|
129
137
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
130
139
|
requirements:
|
131
140
|
- - ">="
|
132
141
|
- !ruby/object:Gem::Version
|
@@ -140,6 +149,7 @@ dependencies:
|
|
140
149
|
- !ruby/object:Gem::Dependency
|
141
150
|
name: deprecated
|
142
151
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
152
|
+
none: false
|
143
153
|
requirements:
|
144
154
|
- - ">="
|
145
155
|
- !ruby/object:Gem::Version
|
@@ -152,6 +162,7 @@ dependencies:
|
|
152
162
|
- !ruby/object:Gem::Dependency
|
153
163
|
name: jeweler
|
154
164
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
155
166
|
requirements:
|
156
167
|
- - ">="
|
157
168
|
- !ruby/object:Gem::Version
|
@@ -164,6 +175,7 @@ dependencies:
|
|
164
175
|
- !ruby/object:Gem::Dependency
|
165
176
|
name: rake
|
166
177
|
version_requirements: &id012 !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
167
179
|
requirements:
|
168
180
|
- - ">="
|
169
181
|
- !ruby/object:Gem::Version
|
@@ -176,6 +188,7 @@ dependencies:
|
|
176
188
|
- !ruby/object:Gem::Dependency
|
177
189
|
name: BlueCloth
|
178
190
|
version_requirements: &id013 !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
179
192
|
requirements:
|
180
193
|
- - "="
|
181
194
|
- !ruby/object:Gem::Version
|
@@ -190,6 +203,7 @@ dependencies:
|
|
190
203
|
- !ruby/object:Gem::Dependency
|
191
204
|
name: yard
|
192
205
|
version_requirements: &id014 !ruby/object:Gem::Requirement
|
206
|
+
none: false
|
193
207
|
requirements:
|
194
208
|
- - ">="
|
195
209
|
- !ruby/object:Gem::Version
|
@@ -202,6 +216,7 @@ dependencies:
|
|
202
216
|
- !ruby/object:Gem::Dependency
|
203
217
|
name: mongrel
|
204
218
|
version_requirements: &id015 !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
205
220
|
requirements:
|
206
221
|
- - ">="
|
207
222
|
- !ruby/object:Gem::Version
|
@@ -216,6 +231,7 @@ dependencies:
|
|
216
231
|
- !ruby/object:Gem::Dependency
|
217
232
|
name: sinatra
|
218
233
|
version_requirements: &id016 !ruby/object:Gem::Requirement
|
234
|
+
none: false
|
219
235
|
requirements:
|
220
236
|
- - ">="
|
221
237
|
- !ruby/object:Gem::Version
|
@@ -229,6 +245,7 @@ dependencies:
|
|
229
245
|
- !ruby/object:Gem::Dependency
|
230
246
|
name: rr
|
231
247
|
version_requirements: &id017 !ruby/object:Gem::Requirement
|
248
|
+
none: false
|
232
249
|
requirements:
|
233
250
|
- - ">="
|
234
251
|
- !ruby/object:Gem::Version
|
@@ -241,6 +258,7 @@ dependencies:
|
|
241
258
|
- !ruby/object:Gem::Dependency
|
242
259
|
name: clipboard
|
243
260
|
version_requirements: &id018 !ruby/object:Gem::Requirement
|
261
|
+
none: false
|
244
262
|
requirements:
|
245
263
|
- - ">="
|
246
264
|
- !ruby/object:Gem::Version
|
@@ -490,6 +508,15 @@ files:
|
|
490
508
|
- utils/Rakefile
|
491
509
|
- utils/formatters/operahelper_formatter.rb
|
492
510
|
- utils/formatters/spartan_formatter.rb
|
511
|
+
- spec/watir3/browser_spec.rb
|
512
|
+
- spec/watir3/clipboard_spec.rb
|
513
|
+
- spec/watir3/collection_spec.rb
|
514
|
+
- spec/watir3/element_spec.rb
|
515
|
+
- spec/watir3/guards.rb
|
516
|
+
- spec/watir3/keys_spec.rb
|
517
|
+
- spec/watir3/server.rb
|
518
|
+
- spec/watir3/watirspec_helper.rb
|
519
|
+
- spec/watir3/window_spec.rb
|
493
520
|
has_rdoc: true
|
494
521
|
homepage: http://www.opera.com/developer/tools/operawatir/
|
495
522
|
licenses: []
|
@@ -500,6 +527,7 @@ rdoc_options: []
|
|
500
527
|
require_paths:
|
501
528
|
- lib
|
502
529
|
required_ruby_version: !ruby/object:Gem::Requirement
|
530
|
+
none: false
|
503
531
|
requirements:
|
504
532
|
- - ">="
|
505
533
|
- !ruby/object:Gem::Version
|
@@ -507,6 +535,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
507
535
|
- 0
|
508
536
|
version: "0"
|
509
537
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
538
|
+
none: false
|
510
539
|
requirements:
|
511
540
|
- - ">"
|
512
541
|
- !ruby/object:Gem::Version
|
@@ -518,7 +547,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
518
547
|
requirements: []
|
519
548
|
|
520
549
|
rubyforge_project: operawatir
|
521
|
-
rubygems_version: 1.3.
|
550
|
+
rubygems_version: 1.3.7
|
522
551
|
signing_key:
|
523
552
|
specification_version: 3
|
524
553
|
summary: Toolkit for automating interactions with the Opera web browser.
|