fe_core_ext 0.1.32 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fe_core_ext/gem_ext/selenium_webdriver.rb +16 -0
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fa449398d5f0a06ff850f32014b7c519d27b165
|
4
|
+
data.tar.gz: d1457cb0abdb2117d4581de96a596a8ee895f162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a8703eebffb08e4894e20ac36cfe6d4a90e36c9e338c7e4a8af9b922069ce6a0a793f472caf0c3bc38a4af8aa66c2b26aa19cfd438838865ed7e205be06144
|
7
|
+
data.tar.gz: 580f71bb18fea23ae48a6ffa4af654449697ab41be5e59800355e6c21423a66070f5ce79946858d132efea1f7e7d435d7a87c8bb3a6f8609799451d7e38a8187
|
@@ -26,4 +26,20 @@ class Selenium::WebDriver::Driver
|
|
26
26
|
end
|
27
27
|
fe_find_elements(:xpath, path)
|
28
28
|
end
|
29
|
+
|
30
|
+
def at_css(path, wait: nil)
|
31
|
+
if wait.present?
|
32
|
+
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
33
|
+
driver_wait.until { fe_find_element(:css, path) }
|
34
|
+
end
|
35
|
+
fe_find_element(:css, path)
|
36
|
+
end
|
37
|
+
|
38
|
+
def css(path, wait: nil)
|
39
|
+
if wait.present?
|
40
|
+
driver_wait = Selenium::WebDriver::Wait.new(timeout: wait)
|
41
|
+
driver_wait.until { fe_find_elements(:css, path) }
|
42
|
+
end
|
43
|
+
fe_find_elements(:css, path)
|
44
|
+
end
|
29
45
|
end
|
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.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -119,4 +119,3 @@ signing_key:
|
|
119
119
|
specification_version: 4
|
120
120
|
summary: Core class extensions
|
121
121
|
test_files: []
|
122
|
-
has_rdoc:
|