capybara-wait_before_click 0.1.1 → 0.2.1

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
  SHA256:
3
- metadata.gz: 4c4654656c037643cb98adbdf9fc416f08486e1676d997898f29b31aa642ceb9
4
- data.tar.gz: 806028ee61b7e75044f212ac8656951d63909ad66c458fe5620ac6c053a52678
3
+ metadata.gz: 2db13f38f3ebbc8165a7176ba5c440cf35b2986a04711f9cc67a1e99351319b4
4
+ data.tar.gz: a4b5f0d4f01a845811ec8d78bd9a58b48c4cb9f2cabd8bdbea4c99509791393e
5
5
  SHA512:
6
- metadata.gz: 5949fec9f7735e03fbd8f9f2f73b444bd90a00e88f9e1e98be1dbfd4d896e3d250d2c20239a28abb6ddac105edbe46d5a7d1cadf33089b32fdd67c3b0b38388d
7
- data.tar.gz: a87f7ada4de1c48841daa87433e8ca48f70b94a20298bb3abf0636a1d0b13db4ab0ca855b7ddfbf7587a9c488d04f28f84d9e0653e4294dc5c69701ab5f6cbbc
6
+ metadata.gz: 65434b68b19d087fd938672aa4f94d50aeddc7b2747289e0e1c275580632956ea9e0a65875f5132b168f8e700919c951bd430f4ab7a70ce595d630a8b0c811ed
7
+ data.tar.gz: 0debd488145c1109314cddce041d42b986afd3468321060fb43babb3c5b7c678cdfb195afe55e958962468a9165f7c1e0e9e69861532d7be373b80c49f2cc7ee
data/.rubocop.yml CHANGED
@@ -18,3 +18,7 @@ Style/StringLiteralsInInterpolation:
18
18
 
19
19
  Layout/LineLength:
20
20
  Max: 120
21
+
22
+ Metrics/BlockLength:
23
+ Exclude:
24
+ - 'spec/**/*'
data/Gemfile CHANGED
@@ -9,5 +9,6 @@ gem "puma"
9
9
  gem "rake", "~> 13.0"
10
10
  gem "rspec", "~> 3.0"
11
11
  gem "rubocop", "~> 1.21"
12
+ gem "selenium-webdriver"
12
13
  gem "sinatra", "~> 3.0"
13
14
  gem "webdrivers"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capybara-wait_before_click (0.1.1)
4
+ capybara-wait_before_click (0.2.1)
5
5
  capybara (~> 3.0)
6
6
 
7
7
  GEM
@@ -107,6 +107,7 @@ DEPENDENCIES
107
107
  rake (~> 13.0)
108
108
  rspec (~> 3.0)
109
109
  rubocop (~> 1.21)
110
+ selenium-webdriver
110
111
  sinatra (~> 3.0)
111
112
  webdrivers
112
113
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capybara
4
4
  module WaitBeforeClick
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
@@ -19,7 +19,7 @@ module Capybara
19
19
  _logger.debug "[capybara-wait_before_click]Timeout::Error"
20
20
  rescue Capybara::NotSupportedByDriverError
21
21
  # It comes here when you run it in rack-test, but you can ignore it
22
- rescue Selenium::WebDriver::Error::StaleElementReferenceError
22
+ rescue ::Selenium::WebDriver::Error::StaleElementReferenceError
23
23
  _logger.debug "[capybara-wait_before_click]Selenium::WebDriver::Error::StaleElementReferenceError"
24
24
  reload
25
25
  _wait_for_image_loading
@@ -30,6 +30,11 @@ module Capybara
30
30
  super
31
31
  end
32
32
 
33
+ def hover
34
+ _wait_for_image_loading
35
+ super
36
+ end
37
+
33
38
  def _logger
34
39
  @_logger ||= if defined?(Rails)
35
40
  Rails.logger
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-wait_before_click
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara