Sha256: 89830f784953c143fe66f5d56bd75293723a5a03eb6d4ab2feaddc746f04aff0
Contents?: true
Size: 671 Bytes
Versions: 7
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true Capybara.server = :puma, { Silent: true } args = %w[disable-dev-shm-usage no-sandbox disable-gpu window-size=1280,1024] args << "lang=#{I18n.locale}" args << 'headless' unless ENV['DEBUG'] capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( chromeOptions: { args: args } ) Capybara.register_driver :chrome do |app| Capybara::Selenium::Driver.new( app, browser: :chrome, desired_capabilities: capabilities ) end Capybara.register_driver :selenium_remote do |app| Capybara::Selenium::Driver.new( app, browser: :remote, desired_capabilities: capabilities, url: 'http://selenium:4444/wd/hub' ) end
Version data entries
7 entries across 7 versions & 1 rubygems