fe_core_ext 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fe_core_ext/core_ext/hash.rb +0 -3
- data/lib/fe_core_ext/gem_ext/selenium_webdriver.rb +10 -10
- data/lib/fe_core_ext/version.rb +1 -1
- 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: 556e0fe13288ea5be1f14cbcf92d297bad94ec32
|
4
|
+
data.tar.gz: 76a126abe5a628aa7d8160c46116e327156bb145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c45324d2ce3ff96d13d54d015bb49b257858d8dd964372024c91eab75393d20521219bd38d9f4e5a14b1d13721d057b1bb37c044f557e52bca8ce2ec6ecb6c5
|
7
|
+
data.tar.gz: 998959866dba5e05a4482407b5ee8e5ae1f93714ed9e0afa4f98efb9511f1e53037c5d066bc98ab2629270daea0602b0b47a6f6a516deca1c5e184cb3f98282f
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Selenium::WebDriver::Find
|
2
|
-
def
|
2
|
+
def find_element_without_no_element_error(*args)
|
3
3
|
find_element(*args)
|
4
4
|
rescue Selenium::WebDriver::Error::NoSuchElementError
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
8
|
+
def find_elements_without_no_element_error(*args)
|
9
9
|
find_elements(*args)
|
10
10
|
rescue Selenium::WebDriver::Error::NoSuchElementError
|
11
11
|
nil
|
@@ -14,33 +14,33 @@ module Selenium::WebDriver::Find
|
|
14
14
|
def at_xpath(path, wait: nil)
|
15
15
|
if wait.present?
|
16
16
|
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
17
|
-
driver_wait.until {
|
17
|
+
driver_wait.until { find_element_without_no_element_error(:xpath, path) }
|
18
18
|
end
|
19
|
-
|
19
|
+
find_element_without_no_element_error(:xpath, path)
|
20
20
|
end
|
21
21
|
|
22
22
|
def xpath(path, wait: nil)
|
23
23
|
if wait.present?
|
24
24
|
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
25
|
-
driver_wait.until {
|
25
|
+
driver_wait.until { find_elements_without_no_element_error(:xpath, path) }
|
26
26
|
end
|
27
|
-
|
27
|
+
find_elements_without_no_element_error(:xpath, path)
|
28
28
|
end
|
29
29
|
|
30
30
|
def at_css(path, wait: nil)
|
31
31
|
if wait.present?
|
32
32
|
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
33
|
-
driver_wait.until {
|
33
|
+
driver_wait.until { find_element_without_no_element_error(:css, path) }
|
34
34
|
end
|
35
|
-
|
35
|
+
find_element_without_no_element_error(:css, path)
|
36
36
|
end
|
37
37
|
|
38
38
|
def css(path, wait: nil)
|
39
39
|
if wait.present?
|
40
40
|
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
41
|
-
driver_wait.until {
|
41
|
+
driver_wait.until { find_elements_without_no_element_error(:css, path) }
|
42
42
|
end
|
43
|
-
|
43
|
+
find_elements_without_no_element_error(:css, path)
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
data/lib/fe_core_ext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fe_core_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|