spec/watirspec/browser_spec.rb in watir-webdriver-0.1.3 vs spec/watirspec/browser_spec.rb in watir-webdriver-0.1.4
- old
+ new
@@ -110,15 +110,17 @@
browser.url.should include("non_control_elements.html")
end
end
describe "#refresh" do
- it "refreshes the page" do
- browser.goto(WatirSpec.files + "/non_control_elements.html")
- browser.span(:class, 'footer').click
- browser.span(:class, 'footer').text.should include('Javascript')
- browser.refresh
- browser.span(:class, 'footer').text.should_not include('Javascript')
+ not_compliant_on [:webdriver, :ie] do
+ it "refreshes the page" do
+ browser.goto(WatirSpec.files + "/non_control_elements.html")
+ browser.span(:class, 'footer').click
+ browser.span(:class, 'footer').text.should include('Javascript')
+ browser.refresh
+ browser.span(:class, 'footer').text.should_not include('Javascript')
+ end
end
end
describe "#execute_script" do
it "executes the given JavaScript on the current page" do