selenium_fury 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5947a3a1ef97307a23c513b6b4429e3b90baf159
|
4
|
+
data.tar.gz: e4976ee8839e78fd579fe9382e9f556dc9c7251a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154b5247f2a016fa7011c35a6c5c52bad97caf5edd9f7bc2593e080a6531fa19e544a6498afeee74a7afada4b2fd0d201b2f4382451524cbc6c00862f672085e
|
7
|
+
data.tar.gz: 0f479c83677c8a62383a28150b6a2ac28a188217287e5e31361668bcd5865f9796fe32f68b6779c82ae1cb641aea5eb5e52b339a6d8196d0c5e1ad12b4a2d9c4
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module GenericElementHelpers
|
2
2
|
def el
|
3
|
-
|
4
|
-
@driver.find_element(location)
|
3
|
+
@driver.find_element location
|
5
4
|
end
|
6
5
|
|
7
6
|
def list
|
@@ -78,6 +77,7 @@ module ElementWaitHelpers
|
|
78
77
|
|
79
78
|
# Raises error if not present
|
80
79
|
def wait_visible!(timeout=@wait)
|
80
|
+
self.el
|
81
81
|
wait_for(timeout: timeout, message: "Element at #{location} is not visible") { visible? }
|
82
82
|
end
|
83
83
|
|
@@ -87,6 +87,7 @@ module ElementWaitHelpers
|
|
87
87
|
|
88
88
|
# Raises error if not present
|
89
89
|
def wait_not_visible!(timeout=@wait)
|
90
|
+
self.el
|
90
91
|
wait_for(timeout: timeout, message: "Element at #{location} is still visible") { !visible? }
|
91
92
|
end
|
92
93
|
end
|
@@ -316,7 +316,7 @@ describe PageObject do
|
|
316
316
|
it 'should error on missing element if specify !' do
|
317
317
|
start_time = Time.now
|
318
318
|
expect { test_page.not_a_element.wait_visible! }.
|
319
|
-
to raise_exception(
|
319
|
+
to raise_exception(Selenium::WebDriver::Error::NoSuchElementError)
|
320
320
|
(Time.now-start_time).should < 1
|
321
321
|
end
|
322
322
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium_fury
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Sims
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|