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-2.0.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.11.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.10.5 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.10.2 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.10.1 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.10.0 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.20 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.19 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.18 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.17 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.16 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.15 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.14 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.13 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.12 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.11 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.10 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.9 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.8 lib/agilibox/cucumber_helpers/chrome_headless.rb
agilibox-1.9.7 lib/agilibox/cucumber_helpers/chrome_headless.rb