capybara 3.16.0 → 3.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara.rb +1 -0
- data/lib/capybara/selenium/driver.rb +1 -1
- data/lib/capybara/version.rb +1 -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: 92cb6d4aa4a576f2755522ba6641d9b4b7592f10d1e9573e12483deaba309874
|
4
|
+
data.tar.gz: b5d917eba936b657e3fc34533afd5c820a90de237cbf59330631cb25fa17026f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a1bb248d392130169b51793e62f7bb8153d157c158018865d2a62d1df9354d1b56e04f9d33d5e1c09e1e0ce595ce3fd8a82bf14b698f64d9cbeca422becc2f
|
7
|
+
data.tar.gz: ae82a233efabfd21e89364d1117eca4836509a7eb3d883bcf3fd3a50d82013ca9562759750004f7ee87db13ba4fda015ec0f6a25c2e29ffa33a58c0a8b784743
|
data/lib/capybara.rb
CHANGED
@@ -544,6 +544,7 @@ Capybara.register_driver :selenium_headless do |app|
|
|
544
544
|
end
|
545
545
|
|
546
546
|
Capybara.register_driver :selenium_chrome do |app|
|
547
|
+
Capybara::Selenium::Driver.load_selenium
|
547
548
|
browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
|
548
549
|
# Workaround https://bugs.chromium.org/p/chromedriver/issues/detail?id=2650&q=load&sort=-id&colspec=ID%20Status%20Pri%20Owner%20Summary
|
549
550
|
opts.args << '--disable-site-isolation-trials'
|
@@ -16,7 +16,6 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|
16
16
|
|
17
17
|
def self.load_selenium
|
18
18
|
require 'selenium-webdriver'
|
19
|
-
require 'capybara/selenium/patches/persistent_client'
|
20
19
|
warn "Warning: You're using an unsupported version of selenium-webdriver, please upgrade." if Gem.loaded_specs['selenium-webdriver'].version < Gem::Version.new('3.5.0')
|
21
20
|
rescue LoadError => err
|
22
21
|
raise err if err.message !~ /selenium-webdriver/
|
@@ -27,6 +26,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|
27
26
|
def browser
|
28
27
|
@browser ||= begin
|
29
28
|
options[:http_client] ||= begin
|
29
|
+
require 'capybara/selenium/patches/persistent_client'
|
30
30
|
if options[:timeout]
|
31
31
|
::Capybara::Selenium::PersistentClient.new(read_timeout: options[:timeout])
|
32
32
|
else
|
data/lib/capybara/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.16.
|
4
|
+
version: 3.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Walpole
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- gem-public_cert.pem
|
13
|
-
date: 2019-03-
|
13
|
+
date: 2019-03-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|