Sha256: 7b0056f0f896973251f663923c1970f830db3c971bf7ffbc8a54ae2da8fba365

Contents?: true

Size: 572 Bytes

Versions: 65

Compression:

Stored size: 572 Bytes

Contents

Capybara.register_driver :agilibox_chrome_headless do |app|
  window_size = Agilibox::CucumberConfig.window_size.map(&:to_s).join(",")

  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
    :chromeOptions => {args: %W(headless window-size=#{window_size})},
  )

  Capybara::Selenium::Driver.new(app,
    :browser              => :chrome,
    :desired_capabilities => capabilities,
  )
end

Capybara.default_driver    = :agilibox_chrome_headless
Capybara.current_driver    = :agilibox_chrome_headless
Capybara.javascript_driver = :agilibox_chrome_headless

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
agilibox-1.9.6 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.5 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.4 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.3 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.1 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.8.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.7.4 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.7.3 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.7.2 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.7.1 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.7.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.6.2 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.6.1 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.6.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.5.13 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.5.12 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.5.11 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.5.10 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.5.9 lib/agilibox/cucumber_helpers/chrome_headless.rb