Sha256: 53a68187232315df332501f4eb59fc26b599710c0699a36665a844f0371b254f
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
require 'watir-webdriver' module WatirWebdriverRails class WatirWebdriverRailsError < StandardError; end class TimeoutError < WatirWebdriverRailsError; end end require 'watir-webdriver-rails/rails' require 'watir-webdriver-rails/driver' require 'watir-webdriver-rails/browser' require 'watir-webdriver-rails/rspec' # start server RSpec.configure do |config| config.include WatirWebdriverRails::RSpec config.before(:suite) do WatirWebdriverRails.run_server WatirWebdriverRails.initialize_browser WatirWebdriverRails.browser.class_eval do alias_method :old_goto,:goto def goto(*args) if !args[0].match(/^https?:/) args[0] = "http://#{WatirWebdriverRails.host}:#{WatirWebdriverRails.port}#{args[0]}" end old_goto(*args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-rails-0.0.2 | lib/watir-webdriver-rails.rb |
watir-webdriver-rails-0.0.1 | lib/watir-webdriver-rails.rb |