fe_core_ext 0.1.40 → 0.1.41

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: 400f4a45fa62205ad9a19569bcde9ea44856652c
4
- data.tar.gz: 1da1724b8a30d9a35b3c1bd932e454f1fd28764d
3
+ metadata.gz: 556e0fe13288ea5be1f14cbcf92d297bad94ec32
4
+ data.tar.gz: 76a126abe5a628aa7d8160c46116e327156bb145
5
5
  SHA512:
6
- metadata.gz: 4d70ad6351c3b8a12b355680c9c2f994394b5c0a0b218cc3f199061d0666560a56f54a5048a924f510c5b42428927e4c46e564b9e03b1cc6d03e991baf661c67
7
- data.tar.gz: 62e7fe825211ff533611ead1939a1e11c128e96675ab5cc2c171d8d877918a99aab581ff045cc3ee019d4a82021f4e899c425deae19fda31b80764c670b61d6b
6
+ metadata.gz: 3c45324d2ce3ff96d13d54d015bb49b257858d8dd964372024c91eab75393d20521219bd38d9f4e5a14b1d13721d057b1bb37c044f557e52bca8ce2ec6ecb6c5
7
+ data.tar.gz: 998959866dba5e05a4482407b5ee8e5ae1f93714ed9e0afa4f98efb9511f1e53037c5d066bc98ab2629270daea0602b0b47a6f6a516deca1c5e184cb3f98282f
@@ -5,9 +5,6 @@ module FeCoreExt::CoreExt
5
5
  end
6
6
 
7
7
  module FeCoreExt::CoreExt::Hash
8
- def clean
9
- reject { |_, value| value.nil? || value.blank? }
10
- end
11
8
  end
12
9
 
13
10
  class Hash
@@ -1,11 +1,11 @@
1
1
  module Selenium::WebDriver::Find
2
- def fe_find_element(*args)
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 fe_find_elements(*args)
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 { fe_find_element(:xpath, path) }
17
+ driver_wait.until { find_element_without_no_element_error(:xpath, path) }
18
18
  end
19
- fe_find_element(:xpath, path)
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 { fe_find_elements(:xpath, path) }
25
+ driver_wait.until { find_elements_without_no_element_error(:xpath, path) }
26
26
  end
27
- fe_find_elements(:xpath, path)
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 { fe_find_element(:css, path) }
33
+ driver_wait.until { find_element_without_no_element_error(:css, path) }
34
34
  end
35
- fe_find_element(:css, path)
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 { fe_find_elements(:css, path) }
41
+ driver_wait.until { find_elements_without_no_element_error(:css, path) }
42
42
  end
43
- fe_find_elements(:css, path)
43
+ find_elements_without_no_element_error(:css, path)
44
44
  end
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.40'
2
+ VERSION = '0.1.41'
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.40
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-05-26 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport