Sha256: 9963907b30d6c9ba63c00492df9611746c110a17c9728f4f9f7f56062045edbf

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

require 'selenium/webdriver'
require 'capybara/rails'

Capybara.register_driver :chrome do |app|
  Capybara::Selenium::Driver.new(app, browser: :chrome)
end

Capybara.register_driver :headless_chrome do |app|
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
    chromeOptions: { args: %w(headless disable-gpu) }
  )

  Capybara::Selenium::Driver.new app,
    browser: :chrome,
    desired_capabilities: capabilities
end

Capybara.javascript_driver = :headless_chrome

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-testing-6.5.0.0 spec/capybara_config.rb
netzke-testing-6.5.0.0.rc1 spec/capybara_config.rb