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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e11c89bad9b8520ba44314b12052ee3b5845a3bd758a8b96bd29b2cda338a1e9
4
- data.tar.gz: 8e52ab3d885733f71c1d0803d646890c788ec15cc8169c364c6497a21a299b54
3
+ metadata.gz: 92cb6d4aa4a576f2755522ba6641d9b4b7592f10d1e9573e12483deaba309874
4
+ data.tar.gz: b5d917eba936b657e3fc34533afd5c820a90de237cbf59330631cb25fa17026f
5
5
  SHA512:
6
- metadata.gz: 16bcc0e6278f54605652cfe31d98647c0426bba37a1d5695ea7970117de9b9410cfe5d3aa8c154d023979ff24250801d01a26c179aad7ae0acb2124e74e375de
7
- data.tar.gz: e49ed2c6600f114a259025d5e05076a1e2b670b68611eed7d60f3304c15a0a9faf7e476b15dd63c46bc552bb145fcdeb45694a0aa1f71459346f851734c538c8
6
+ metadata.gz: 49a1bb248d392130169b51793e62f7bb8153d157c158018865d2a62d1df9354d1b56e04f9d33d5e1c09e1e0ce595ce3fd8a82bf14b698f64d9cbeca422becc2f
7
+ data.tar.gz: ae82a233efabfd21e89364d1117eca4836509a7eb3d883bcf3fd3a50d82013ca9562759750004f7ee87db13ba4fda015ec0f6a25c2e29ffa33a58c0a8b784743
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Capybara
4
- VERSION = '3.16.0'
4
+ VERSION = '3.16.1'
5
5
  end
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.0
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-28 00:00:00.000000000 Z
13
+ date: 2019-03-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable