interactor_ui_automation 0.1.1 → 0.1.2

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: cc7b322ba79b62a56e0a669f7f03d4901a22992c
4
- data.tar.gz: c090f91efbf02b15623a6d72e0575cd0e96d4c0d
3
+ metadata.gz: 8ee70b1db681588ce64bd69ed6e51ec13a2801ec
4
+ data.tar.gz: ae6528b3bded8f3446f5c150b61ccd6ee59ddabf
5
5
  SHA512:
6
- metadata.gz: 9aaf8ddc55e7e5f65824f1000af131831c98c840ca7a4065ed9f06f85f90d7ae76c488ae7266cdcb78c9fe3a405f11205a21307bd051f0b65f7a0611b26a44d3
7
- data.tar.gz: bd4231fc84a8031acf9bba326ef389bdd1acb353f5f06c9cd1720a42949f2274dd6f17ccedea6817bcc0e947afa357ba99546a0cb433eead2a2c2d0fbad6ccd9
6
+ metadata.gz: 35153de36e50cb7a8447095202db978f6619fbd01684361fa357ac5093a62d7eb2b59506841336c657bfb34ca3a310663102eaab47418302e4cd2d5c1624d5a4
7
+ data.tar.gz: 9ff7af32e3197a9830fc57ba9e2650cde1437692b4538d2d0d27e2c393c7c04226e6686a0f16a872158add4859f586eed2c628bbe16638d453cc99bf778271c5
@@ -30,13 +30,16 @@ module InteractorUIAutomation module Interactor class BaseInteractor
30
30
  end
31
31
 
32
32
  def wait
33
- Selenium::WebDriver::Wait.new(timeout: 5, interval: 0.2)
33
+ ignored_errors = [
34
+ Selenium::WebDriver::Error::NoSuchElementError,
35
+ Selenium::WebDriver::Error::StaleElementReferenceError
36
+ ]
37
+ Selenium::WebDriver::Wait.new(timeout: 5, interval: 0.2, ignore: ignored_errors)
34
38
  end
35
39
 
36
40
  def find_element
37
41
  is_visible!
38
42
 
39
- wait = Selenium::WebDriver::Wait.new(timeout: 5, interval: 0.2)
40
43
  wait.until { @driver.find_element(xpath: current_xpath) }
41
44
  end
42
45
 
@@ -1,3 +1,3 @@
1
1
  module InteractorUIAutomation
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interactor_ui_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-08 00:00:00.000000000 Z
11
+ date: 2017-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler