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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee70b1db681588ce64bd69ed6e51ec13a2801ec
|
4
|
+
data.tar.gz: ae6528b3bded8f3446f5c150b61ccd6ee59ddabf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|