gridium 1.1.25 → 1.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/element.rb +3 -3
- 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: 4190f23e60e937600e9f69efcc5ae88da1982718
|
4
|
+
data.tar.gz: 00261f7a5f7d79bbba3aaed3bd6775117f7b4ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf9a61f86b883870be6dd8a3bce9e2c53ac871000cf475ed9dd04c2db9560e5567315d3bc829354a9f12cf0f9154bb0958b75f8c0769e0217e89eb9acb62ac8b
|
7
|
+
data.tar.gz: 9e3ccf4929335bd931da745e69a1b521c17d1d19e4a190150b02409aafd848f0d4927473266f130c8e6d781e4118c01492d9ceab949c75cc157e892da450f5ef
|
data/lib/element.rb
CHANGED
@@ -10,7 +10,7 @@ class Element
|
|
10
10
|
@name = name
|
11
11
|
@by = by
|
12
12
|
@locator = locator
|
13
|
-
@timeout = opts[:timeout] || Gridium.config.element_timeout
|
13
|
+
@timeout = opts[:timeout] || Gridium.config.element_timeout #don't set this to zero
|
14
14
|
@element_screenshot = nil #used to store the path of element screenshots for comparison
|
15
15
|
|
16
16
|
# wrapped driver
|
@@ -104,8 +104,8 @@ class Element
|
|
104
104
|
return false
|
105
105
|
end
|
106
106
|
|
107
|
-
def displayed?
|
108
|
-
return element.displayed?
|
107
|
+
def displayed?(opts = {})
|
108
|
+
return element(opts).displayed?
|
109
109
|
rescue StandardError => error
|
110
110
|
Log.debug("[GRIDIUM::Element] element.displayed? is false because this error was rescued: #{error}")
|
111
111
|
return false
|
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.28
|
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-06
|
11
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|