Sha256: 1b17939414c11cef5ee8e7ad976871f3e538e379a0fc7f1fd0347eae3e0f6443

Contents?: true

Size: 769 Bytes

Versions: 3

Compression:

Stored size: 769 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'coveralls'
Coveralls.wear!

require 'watir'
require 'locator_spec_helper'
require 'rubygems'
require 'rspec'

include Watir

if ENV['ALWAYS_LOCATE'] == "false"
  Watir.always_locate = false
end

if ENV['PREFER_CSS']
  Watir.prefer_css = true
end

SELENIUM_SELECTORS = %i(class class_name css id tag_name xpath)

if ENV['TRAVIS']
  ENV['DISPLAY'] = ":99.0"

  if ENV['WATIR_BROWSER'] == "chrome"
    ENV['WATIR_CHROME_BINARY'] = File.expand_path "chrome-linux/chrome"
    ENV['WATIR_CHROME_DRIVER'] = File.expand_path "chrome-linux/chromedriver"
  end
end

if Selenium::WebDriver::Platform.linux? && ENV['DISPLAY'].nil?
  raise "DISPLAY not set"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watir-6.0.0.beta3 spec/spec_helper.rb
watir-6.0.0.beta2 spec/spec_helper.rb
watir-6.0.0.beta1 spec/spec_helper.rb