Sha256: f7e44014bc89823c16c5328f42628a2916b40815504d93aff525617aad04bc12
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
require "govuk_test/version" require "capybara" require "puma" require "chromedriver-helper" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_test-0.3.1 | lib/govuk_test.rb |
govuk_test-0.2.1 | lib/govuk_test.rb |