Sha256: b11f4a6f1836b69d562ac2b7a80a24751d1251517cce33cb24240ad2443a7c80
Contents?: true
Size: 733 Bytes
Versions: 4
Compression:
Stored size: 733 Bytes
Contents
require 'capybara/rspec' require 'capybara-screenshot' require 'capybara-screenshot/rspec' require 'capybara/rails' require 'selenium-webdriver' RSpec.configure do Capybara.register_driver :chrome do |app| Selenium::WebDriver.logger.level = :error 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
4 entries across 4 versions & 1 rubygems