Sha256: 23f41db18587f2c9e60a590658e6a036b04164259506847f9b94214fec476075
Contents?: true
Size: 658 Bytes
Versions: 12
Compression:
Stored size: 658 Bytes
Contents
require 'capybara/rspec' require 'capybara-screenshot' require 'capybara-screenshot/rspec' require 'capybara/rails' RSpec.configure do Capybara.register_driver :chrome do |app| Capybara::Selenium::Driver.new app, browser: :chrome, options: Selenium::WebDriver::Chrome::Options.new( args: %w[headless disable-gpu window-size=1920,1080 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=VizDisplayCompositor], log_level: :error ) end Capybara.javascript_driver = :chrome Capybara::Screenshot.register_driver(:chrome) do |driver, path| driver.browser.save_screenshot(path) end end
Version data entries
12 entries across 12 versions & 1 rubygems