Sha256: 19ae950a5ca7efd45dbee8015b53bfd93fb6ce7d14a5da253081763d35404206

Contents?: true

Size: 640 Bytes

Versions: 22

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

# # frozen_string_literal: true
if defined?(Capybara)
  Capybara.register_driver(:headless_chrome) do |app|
    capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
      chromeOptions: { args: %w(headless disable-gpu window-size=1366,1768) }
    )

    Capybara::Selenium::Driver.new(
      app,
      browser: :chrome,
      desired_capabilities: capabilities
    )
  end

  if RUBY_PLATFORM.match?(/darwin/)
    Capybara::Screenshot.register_driver(:headless_chrome) do |driver, path|
      driver.browser.save_screenshot(path)
    end
  end
  Capybara.javascript_driver = :headless_chrome
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
renalware-core-2.0.67 spec/support/capybara.rb
renalware-core-2.0.64 spec/support/capybara.rb
renalware-core-2.0.63 spec/support/capybara.rb
renalware-core-2.0.62 spec/support/capybara.rb
renalware-core-2.0.61 spec/support/capybara.rb
renalware-core-2.0.60 spec/support/capybara.rb
renalware-core-2.0.58 spec/support/capybara.rb
renalware-core-2.0.57 spec/support/capybara.rb
renalware-core-2.0.56 spec/support/capybara.rb
renalware-core-2.0.55 spec/support/capybara.rb
renalware-core-2.0.54 spec/support/capybara.rb
renalware-core-2.0.53 spec/support/capybara.rb
renalware-core-2.0.52 spec/support/capybara.rb
renalware-core-2.0.51 spec/support/capybara.rb
renalware-core-2.0.50 spec/support/capybara.rb
renalware-core-2.0.48 spec/support/capybara.rb
renalware-core-2.0.47 spec/support/capybara.rb
renalware-core-2.0.46 spec/support/capybara.rb
renalware-core-2.0.45 spec/support/capybara.rb
renalware-core-2.0.44 spec/support/capybara.rb