gridium 1.1.21 → 1.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/page.rb +4 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ea2b898ea5a8be72f31c433401071f2d4692a69
|
4
|
+
data.tar.gz: 4a84839da2476ff78fbe304e8c5c3f83fbb2195b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb38da3bf6325e64e3cc70b8a83cba75e74c59c460cdac16e2a4427769bd0acee34e0de7deacef74bcf059d8d2703bd2f6fd4839a65fc95949b05851e50a240f
|
7
|
+
data.tar.gz: 4a0595e92668463c43c40afad7207ccf28557c981672cf18bb80f0b5f98821dea239c090eb98ef3f7e10e8975a9bc1610193800804b142a01bdc6237ada7001c
|
data/lib/page.rb
CHANGED
@@ -22,11 +22,10 @@ module Gridium
|
|
22
22
|
timeout = opts[:timeout] || 5
|
23
23
|
wait = Selenium::WebDriver::Wait.new(:timeout => timeout)
|
24
24
|
begin
|
25
|
-
element = Driver.driver.find_element :css, css
|
26
25
|
if opts[:visible]
|
27
|
-
wait.until {
|
26
|
+
wait.until {Driver.driver.find_element(:css, css).displayed?}
|
28
27
|
else
|
29
|
-
wait.until {
|
28
|
+
wait.until {Driver.driver.find_element(:css, css).enabled?}
|
30
29
|
end
|
31
30
|
rescue Exception => exception
|
32
31
|
Log.debug("[GRIDIUM::Page] has_css? is false because this exception was rescued: #{exception}")
|
@@ -38,11 +37,10 @@ module Gridium
|
|
38
37
|
timeout = opts[:timeout] || 5
|
39
38
|
wait = Selenium::WebDriver::Wait.new(:timeout => timeout)
|
40
39
|
begin
|
41
|
-
element = Driver.driver.find_element :xpath, xpath
|
42
40
|
if opts[:visible]
|
43
|
-
wait.until {
|
41
|
+
wait.until {Driver.driver.find_element(:xpath, xpath).displayed?}
|
44
42
|
else
|
45
|
-
wait.until {
|
43
|
+
wait.until {Driver.driver.find_element(:xpath, xpath).enabled?}
|
46
44
|
end
|
47
45
|
rescue Exception => exception
|
48
46
|
Log.debug("[GRIDIUM::Page] has_xpath? is false because this exception was rescued: #{exception}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|