Sha256: 84d15444ae92a663a882ba5f681d5af88548aae8d991685e8458352d00c5f9ff

Contents?: true

Size: 461 Bytes

Versions: 9

Compression:

Stored size: 461 Bytes

Contents

require "selenium/webdriver"

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

9 entries across 9 versions & 2 rubygems

Version Path
suspenders-1.52.0 templates/chromedriver.rb
suspenders-1.51.0 templates/chromedriver.rb
bulldozer-1.6.3 templates/chromedriver.rb
bulldozer-1.6.2 templates/chromedriver.rb
bulldozer-1.6.1 templates/chromedriver.rb
bulldozer-1.6.0 templates/chromedriver.rb
suspenders-1.50.0 templates/chromedriver.rb
suspenders-1.49.0 templates/chromedriver.rb
suspenders-1.48.0 templates/chromedriver.rb