watir-webdriver 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,6 +25,7 @@ module Watir
|
|
25
25
|
def initialize(parent, selector)
|
26
26
|
@parent = parent
|
27
27
|
@selector = selector
|
28
|
+
@element = nil
|
28
29
|
|
29
30
|
unless @selector.kind_of? Hash
|
30
31
|
raise ArgumentError, "invalid argument: #{selector.inspect}"
|
@@ -345,6 +346,10 @@ module Watir
|
|
345
346
|
klass.new(@parent, :element => elem)
|
346
347
|
end
|
347
348
|
|
349
|
+
def browser
|
350
|
+
@parent.browser
|
351
|
+
end
|
352
|
+
|
348
353
|
protected
|
349
354
|
|
350
355
|
def assert_exists
|
@@ -368,10 +373,6 @@ module Watir
|
|
368
373
|
raise UnknownObjectException, "#{ex.message} - #{selector_string}"
|
369
374
|
end
|
370
375
|
|
371
|
-
def browser
|
372
|
-
@parent.browser
|
373
|
-
end
|
374
|
-
|
375
376
|
def reset!
|
376
377
|
@parent.reset!
|
377
378
|
@element = nil
|
data/spec/implementation.rb
CHANGED
@@ -11,7 +11,7 @@ class ImplementationConfig
|
|
11
11
|
set_guard_proc
|
12
12
|
add_html_routes
|
13
13
|
|
14
|
-
WatirSpec.always_use_server = mobile?
|
14
|
+
WatirSpec.always_use_server = mobile? || ie?
|
15
15
|
end
|
16
16
|
|
17
17
|
private
|
@@ -36,6 +36,10 @@ class ImplementationConfig
|
|
36
36
|
[:android, :iphone].include? browser
|
37
37
|
end
|
38
38
|
|
39
|
+
def ie?
|
40
|
+
[:ie, :internet_explorer].include? browser
|
41
|
+
end
|
42
|
+
|
39
43
|
def set_guard_proc
|
40
44
|
matching_guards = [
|
41
45
|
:webdriver, # guard only applies to webdriver
|
data/watir-webdriver.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Jari Bakken"]
|
10
10
|
s.email = ["jari.bakken@gmail.com"]
|
11
|
-
s.homepage = "http://github.com/
|
11
|
+
s.homepage = "http://github.com/watir/watir-webdriver"
|
12
12
|
s.summary = %q{Watir on WebDriver}
|
13
13
|
s.description = %q{WebDriver-backed Watir}
|
14
14
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jari Bakken
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-02-09 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: selenium-webdriver
|
@@ -255,7 +255,7 @@ files:
|
|
255
255
|
- support/html5.html
|
256
256
|
- support/travis.sh
|
257
257
|
- watir-webdriver.gemspec
|
258
|
-
homepage: http://github.com/
|
258
|
+
homepage: http://github.com/watir/watir-webdriver
|
259
259
|
licenses: []
|
260
260
|
|
261
261
|
post_install_message: |+
|