Sha256: 5c4a1506ec0ac143298fcd42461d9e054d65d699948e314120a31e06d8844928
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require "govuk_test/version" require "capybara" require "puma" require "selenium-webdriver" module GovukTest def self.configure(options = {}) chrome_options = %w(headless disable-gpu) chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size] Capybara.register_driver :headless_chrome do |app| capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( chromeOptions: { args: chrome_options } ) Capybara::Selenium::Driver.new( app, browser: :chrome, desired_capabilities: capabilities ) end Capybara.javascript_driver = :headless_chrome end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_test-0.2.0 | lib/govuk_test.rb |