vapir-ie 1.9.0 → 1.10.0
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/lib/vapir-ie/element.rb +6 -6
- data/lib/vapir-ie/frame.rb +1 -0
- data/lib/vapir-ie/page_container.rb +1 -0
- data/lib/vapir-ie/version.rb +1 -1
- data/lib/vapir-ie/win32ole/win32ole.so +0 -0
- metadata +6 -22
data/lib/vapir-ie/element.rb
CHANGED
@@ -168,10 +168,10 @@ module Vapir
|
|
168
168
|
# Options:
|
169
169
|
# - :wait => true or false. If true, waits for the javascript call to return, and calls the #wait method.
|
170
170
|
# If false, does not wait for the javascript to return and does not call #wait.
|
171
|
-
# Default is true.
|
171
|
+
# Default is the current config.wait value (which is by default true).
|
172
172
|
# - :highlight => true or false. Highlights the element while clicking if true. Default is true.
|
173
173
|
def click(options={})
|
174
|
-
options={:wait =>
|
174
|
+
options={:wait => config.wait, :highlight => true}.merge(options)
|
175
175
|
result=nil
|
176
176
|
with_highlight(options) do
|
177
177
|
assert_enabled if respond_to?(:assert_enabled)
|
@@ -226,7 +226,7 @@ module Vapir
|
|
226
226
|
# Takes options:
|
227
227
|
# - :highlight => true or false. Highlights the element while clicking if true. Default is true.
|
228
228
|
def click_no_wait(options={})
|
229
|
-
|
229
|
+
with_config(:wait => false) { click(options) }
|
230
230
|
end
|
231
231
|
|
232
232
|
# Executes a user defined "fireEvent" for objects with JavaScript events tied to them such as DHTML menus.
|
@@ -239,7 +239,7 @@ module Vapir
|
|
239
239
|
event_type = "on"+event_type
|
240
240
|
end
|
241
241
|
|
242
|
-
options={:highlight => true, :wait =>
|
242
|
+
options={:highlight => true, :wait => config.wait}.merge(options)
|
243
243
|
with_highlight(options) do
|
244
244
|
assert_enabled if respond_to?(:assert_enabled)
|
245
245
|
if options[:wait]
|
@@ -315,11 +315,11 @@ module Vapir
|
|
315
315
|
# raises: UnknownObjectException if the object is not found
|
316
316
|
# ObjectDisabledException if the object is currently disabled
|
317
317
|
def fire_event_no_wait(event, options={})
|
318
|
-
|
318
|
+
with_config(:wait => false) { fire_event(event, options) }
|
319
319
|
end
|
320
320
|
|
321
321
|
def wait(options={})
|
322
|
-
@container.wait(options)
|
322
|
+
@container.wait(options) if config.wait
|
323
323
|
end
|
324
324
|
|
325
325
|
def self.element_object_style(element_object, document_object)
|
data/lib/vapir-ie/frame.rb
CHANGED
@@ -11,6 +11,7 @@ module Vapir
|
|
11
11
|
# (clicking a link or whatever) tend to affect other frames too; waiting on just this frame doesn't
|
12
12
|
# make sense.
|
13
13
|
def wait(options={}) # :nodoc:
|
14
|
+
return unless config.wait
|
14
15
|
if browser # prefer to wait on the browser
|
15
16
|
browser.wait(options)
|
16
17
|
elsif container # if we don't have the browser, wait on the container (presumably this exists)
|
@@ -90,6 +90,7 @@ module Vapir
|
|
90
90
|
# Note: This code needs to be prepared for the ie object to be closed at
|
91
91
|
# any moment!
|
92
92
|
def wait(options={})
|
93
|
+
return unless config.wait
|
93
94
|
unless options.is_a?(Hash)
|
94
95
|
raise ArgumentError, "given options should be a Hash, not #{options.inspect} (#{options.class})\nold conflicting arguments of no_sleep or last_url are gone"
|
95
96
|
end
|
data/lib/vapir-ie/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vapir-ie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 51
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
|
-
-
|
7
|
+
- 10
|
9
8
|
- 0
|
10
|
-
version: 1.
|
9
|
+
version: 1.10.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Ethan
|
@@ -15,34 +14,30 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-09-28 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: vapir-common
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - "="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 51
|
30
27
|
segments:
|
31
28
|
- 1
|
32
|
-
-
|
29
|
+
- 10
|
33
30
|
- 0
|
34
|
-
version: 1.
|
31
|
+
version: 1.10.0
|
35
32
|
type: :runtime
|
36
33
|
version_requirements: *id001
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
35
|
name: win32-process
|
39
36
|
prerelease: false
|
40
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
38
|
requirements:
|
43
39
|
- - ~>
|
44
40
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 1
|
46
41
|
segments:
|
47
42
|
- 0
|
48
43
|
- 5
|
@@ -53,11 +48,9 @@ dependencies:
|
|
53
48
|
name: nokogiri
|
54
49
|
prerelease: false
|
55
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
52
|
- - ~>
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 7
|
61
54
|
segments:
|
62
55
|
- 1
|
63
56
|
- 4
|
@@ -69,11 +62,9 @@ dependencies:
|
|
69
62
|
name: ffi
|
70
63
|
prerelease: false
|
71
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
65
|
requirements:
|
74
66
|
- - ">="
|
75
67
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
68
|
segments:
|
78
69
|
- 0
|
79
70
|
- 5
|
@@ -81,7 +72,6 @@ dependencies:
|
|
81
72
|
version: 0.5.4
|
82
73
|
- - <
|
83
74
|
- !ruby/object:Gem::Version
|
84
|
-
hash: 15
|
85
75
|
segments:
|
86
76
|
- 2
|
87
77
|
- 0
|
@@ -93,11 +83,9 @@ dependencies:
|
|
93
83
|
name: winwindow
|
94
84
|
prerelease: false
|
95
85
|
requirement: &id005 !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
86
|
requirements:
|
98
87
|
- - ~>
|
99
88
|
- !ruby/object:Gem::Version
|
100
|
-
hash: 15
|
101
89
|
segments:
|
102
90
|
- 0
|
103
91
|
- 4
|
@@ -162,20 +150,16 @@ rdoc_options:
|
|
162
150
|
require_paths:
|
163
151
|
- lib
|
164
152
|
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
153
|
requirements:
|
167
154
|
- - ">="
|
168
155
|
- !ruby/object:Gem::Version
|
169
|
-
hash: 3
|
170
156
|
segments:
|
171
157
|
- 0
|
172
158
|
version: "0"
|
173
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
160
|
requirements:
|
176
161
|
- - ">="
|
177
162
|
- !ruby/object:Gem::Version
|
178
|
-
hash: 3
|
179
163
|
segments:
|
180
164
|
- 0
|
181
165
|
version: "0"
|
@@ -183,7 +167,7 @@ requirements:
|
|
183
167
|
- Microsoft Windows
|
184
168
|
- Internet Explorer
|
185
169
|
rubyforge_project:
|
186
|
-
rubygems_version: 1.3.
|
170
|
+
rubygems_version: 1.3.6
|
187
171
|
signing_key:
|
188
172
|
specification_version: 3
|
189
173
|
summary: Library for automating the Internet Explorer browser in Ruby
|