Sha256: f847c5ecad5974d231c412e1b32105dfa844215010de3bbbac1167a496a98962
Contents?: true
Size: 1000 Bytes
Versions: 4
Compression:
Stored size: 1000 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 # @note In January 2018, TravisCI disabled Chrome sandboxing in its Linux # container build environments to mitigate Meltdown/Spectre # vulnerabilities, at which point Hyrax could no longer use the # Capybara-provided :selenium_chrome_headless driver (which does not # include the `--no-sandbox` argument). 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
4 entries across 4 versions & 1 rubygems