Sha256: 514ea1a1db38b97a400178b8cce0b943c61ac56082655bb42a13e928e07ac9f6

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

require 'capybara'
require 'capybara/cucumber'
require 'selenium-webdriver'
require 'site_prism'
require 'rspec'
require 'yaml'
require 'capybara/poltergeist'

BROWSER = ENV['BROWSER']
AMBIENTE = ENV['AMBIENTE']

Capybara.register_driver :selenium do |app|
  if BROWSER.eql?('chrome')
    Capybara::Selenium::Driver.new(app, :browser => :chrome)
  elsif BROWSER.eql?('firefox')
    Capybara::Selenium::Driver.new(app, :browser => :firefox)
  elsif BROWSER.eql?('internet_explorer')
    Capybara::Selenium::Driver.new(app, :browser => :internet_explorer)
  elsif BROWSER.eql?('poltergeist')
    options = { js_errors: false }
    Capybara::Poltergeist::Driver.new(app, options)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cs-webautomator-0.1.5 lib/skeleton/features/support/env.rb
cs-webautomator-0.1.4 lib/skeleton/features/support/env.rb