Sha256: cf69287dad43d2963a71b42d806e2c4d84ef316b15918deb2e44e37e0625dd1b

Contents?: true

Size: 728 Bytes

Versions: 2

Compression:

Stored size: 728 Bytes

Contents

# encoding: utf-8
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rubygems'
require 'watir-webdriver'
require 'locator_spec_helper'
require 'spec'
require 'spec/autorun'

include Watir
include Watir::Exception

WEBDRIVER_SELECTORS = [:class, :class_name, :css, :id, :name, :tag_name, :xpath]

if defined?(WatirSpec)
  browser = (ENV['WATIR_WEBDRIVER_BROWSER'] || :firefox).to_sym

  WatirSpec.implementation do |imp|
    imp.name          = :webdriver
    imp.browser_class = Watir::Browser
    imp.browser_args  = [browser]

    imp.guard_proc = lambda { |args|
      args.any? { |arg| arg == :webdriver || arg == [:webdriver, browser] }
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-webdriver-0.0.9 spec/spec_helper.rb
watir-webdriver-0.0.8 spec/spec_helper.rb