Sha256: 03be2e9b83b5c734dc8c9ac6214f7ea7f908eb79e4d51b34c85bc346841d204f
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
require File.expand_path("../spec_helper", __FILE__) WatirSpec.implementation do |imp| name = :webdriver browser = (ENV['WATIR_WEBDRIVER_BROWSER'] || :firefox).to_sym imp.name = name imp.browser_class = Watir::Browser if browser == :firefox && ENV['NATIVE_EVENTS'] == "true" profile = Selenium::WebDriver::Firefox::Profile.new profile.native_events = true imp.browser_args = [:firefox, {:profile => profile}] elsif browser == :chrome && ENV['NATIVE_EVENTS'] == "true" imp.browser_args = [:chrome, {:native_events => true}] else imp.browser_args = [browser] end imp.guard_proc = lambda { |args| args.any? { |arg| arg == name || arg == browser || arg == [name, browser]} } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.4.1 | spec/implementation.rb |
watir-webdriver-0.4.0 | spec/implementation.rb |
watir-webdriver-0.3.9 | spec/implementation.rb |