spec/click_spec.rb in watir-webdriver-0.5.0 vs spec/click_spec.rb in watir-webdriver-0.5.1
- old
+ new
@@ -1,10 +1,10 @@
require File.expand_path('../watirspec/spec_helper', __FILE__)
describe Watir::Element do
describe "#click" do
before {
- browser.goto('file://' + File.expand_path('../html/clicks.html', __FILE__))
+ browser.goto WatirSpec.url_for('clicks.html', :needs_server => true)
}
let(:clicker) { browser.element(:id => "click-logger") }
let(:log) { browser.element(:id => "log").ps.map { |e| e.text } }