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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d598b8c47d2bd20b31a295071db1ddf86146007
4
- data.tar.gz: efdc51dbaad17f7164e789204555f4715f32f32a
3
+ metadata.gz: 8fa449398d5f0a06ff850f32014b7c519d27b165
4
+ data.tar.gz: d1457cb0abdb2117d4581de96a596a8ee895f162
5
5
  SHA512:
6
- metadata.gz: 131e9a86d259afcdc1b7adec1d50c25cfbec96b6b0faa667114d50c67cef84c4b75d944657ade1672e5a3dc087a316ac217203c757d8cf4d6b6a0060def8d2c9
7
- data.tar.gz: 36b5ad62e97df1beefb95e60da7c3fe6ea8c4ca840f4660432610defc16686bea22c0cd03453c21088f6c8bff85745e6634d5f6f58ba0cff4d437a47b055f532
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
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.32'
2
+ VERSION = '0.1.33'
3
3
  end
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.32
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-20 00:00:00.000000000 Z
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: