gridium 1.1.25 → 1.1.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/element.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64e37785b0fd534f29be75224f56e42b00fbe187
4
- data.tar.gz: 8b543dfb9d00c5740d1dd67dba2049e01b919789
3
+ metadata.gz: 4190f23e60e937600e9f69efcc5ae88da1982718
4
+ data.tar.gz: 00261f7a5f7d79bbba3aaed3bd6775117f7b4ed8
5
5
  SHA512:
6
- metadata.gz: c1310752c003b974f0d86dcddbd81ce06e9b16e0bea2669b3ebfee63c13f3c32a7117462ad353a3523b24ba107421fc8ddf20a6436507efb3864802cb33df8ea
7
- data.tar.gz: 8f0f77d39ccdf72dc64ad25910bff5409dae93f3c2a6e3b6d2d6d465c6f10277dc82c3f660c2172b33fb588b5d668df4b9d39904559af9a423d4b182cdc08108
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.25
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-30 00:00:00.000000000 Z
11
+ date: 2017-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler