Sha256: 71df6f1721b289486e2ceabfcd209a8ca86f10b40201d4bac0ba27cc88caf4aa

Contents?: true

Size: 810 Bytes

Versions: 6

Compression:

Stored size: 810 Bytes

Contents

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

require 'coveralls'
Coveralls.wear!

require 'watir-webdriver'
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

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

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

  if ENV['WATIR_WEBDRIVER_BROWSER'] == "chrome"
    ENV['WATIR_WEBDRIVER_CHROME_BINARY'] = File.expand_path "chrome-linux/chrome"
    ENV['WATIR_WEBDRIVER_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

6 entries across 6 versions & 1 rubygems

Version Path
watir-webdriver-0.9.9 spec/spec_helper.rb
watir-webdriver-0.9.3 spec/spec_helper.rb
watir-webdriver-0.9.2 spec/spec_helper.rb
watir-webdriver-0.9.1 spec/spec_helper.rb
watir-webdriver-0.9.0 spec/spec_helper.rb
watir-webdriver-0.8.0 spec/spec_helper.rb