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 +4 -4
- data/.rubocop.yml +4 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -1
- data/lib/capybara/wait_before_click/version.rb +1 -1
- data/lib/capybara/wait_before_click.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2db13f38f3ebbc8165a7176ba5c440cf35b2986a04711f9cc67a1e99351319b4
|
4
|
+
data.tar.gz: a4b5f0d4f01a845811ec8d78bd9a58b48c4cb9f2cabd8bdbea4c99509791393e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65434b68b19d087fd938672aa4f94d50aeddc7b2747289e0e1c275580632956ea9e0a65875f5132b168f8e700919c951bd430f4ab7a70ce595d630a8b0c811ed
|
7
|
+
data.tar.gz: 0debd488145c1109314cddce041d42b986afd3468321060fb43babb3c5b7c678cdfb195afe55e958962468a9165f7c1e0e9e69861532d7be373b80c49f2cc7ee
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capybara-wait_before_click (0.
|
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
|
|
@@ -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.
|
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-
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|