Sha256: f3920120b82add4bacd1ec1ce98549446e205e4b5e84103feda56ebe5bd0001c

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require 'support/selenium_display'
require 'capybara'

$selenium_display = SeleniumDisplay.new

Capybara.register_driver :selenium_browser do |app|
  Capybara::Selenium::Driver.new(app, $selenium_display.selenium_options).tap do |driver|
    driver.browser.manage.window.size = $selenium_display.device if $selenium_display.resizable
  end
end

Capybara.javascript_driver = :selenium_browser
Capybara.default_wait_time = 10

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-prg-0.1.0 spec/support/use_selenium_display.rb