Sha256: 5daddd837a9a29a4024bc7df5d41c6a0d422fb238c082725739f6fc93853915a
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 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 imp.browser_args = [browser] case browser when :chromedriver # assumes the chromedriver server is running on the default port imp.browser_args = [:remote, {:url => "http://localhost:9515"}] end imp.guard_proc = lambda { |args| args.any? { |arg| arg == name || arg == [name, browser] } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.2.2 | spec/implementation.rb |
watir-webdriver-0.2.1 | spec/implementation.rb |