spec/element_spec.rb in watir-6.5.0 vs spec/element_spec.rb in watir-6.6.0
- old
+ new
@@ -43,10 +43,10 @@
it "returns false if the element is disabled" do
expect(browser.element(name: 'new_user_submit_disabled')).to_not be_enabled
end
it "raises UnknownObjectException if the element doesn't exist" do
- expect { browser.element(name: "no_such_name").enabled? }.to raise_error(Watir::Exception::UnknownObjectException)
+ expect { browser.element(name: "no_such_name").enabled? }.to raise_unknown_object_exception
end
end
describe "#exists?" do
before do