Sha256: 98a9a0bf9eb1baf0d71c78c99cd10fe8c1f204820c12899050da9651dd68642e

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 Bytes

Contents

# frozen_string_literal: true

require 'selenium-webdriver'

# Temporary pin until chromedriver-helper patched to deal with change in chromedriver versioning
# See https://github.com/flavorjones/chromedriver-helper/pull/63
Capybara.register_driver :selenium_chrome_headless_sandboxless do |app|
  browser_options = ::Selenium::WebDriver::Chrome::Options.new
  browser_options.args << '--headless'
  browser_options.args << '--disable-gpu'
  browser_options.args << '--no-sandbox'
  Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
end

Capybara.default_max_wait_time = 5
Capybara.javascript_driver = :selenium_chrome_headless_sandboxless

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
browse-everything-1.5.0 spec/support/capybara.rb
browse-everything-1.4.0 spec/support/capybara.rb
browse-everything-1.3.0 spec/support/capybara.rb
browse-everything-1.2.0 spec/support/capybara.rb
browse-everything-1.1.2 spec/support/capybara.rb
browse-everything-1.1.1 spec/support/capybara.rb
browse-everything-1.1.0 spec/support/capybara.rb
browse-everything-1.0.2 spec/support/capybara.rb