spec/watirspec/elements/tfoot_spec.rb in watir-6.9.1 vs spec/watirspec/elements/tfoot_spec.rb in watir-6.10.0
- old
+ new
@@ -40,14 +40,9 @@
it "raises TypeError when 'what' argument is invalid" do
expect { browser.tfoot(id: 3.14).exists? }.to raise_error(TypeError)
expect { browser.table(index: 0).tfoot(id: 3.14).exists? }.to raise_error(TypeError)
end
-
- it "raises MissingWayOfFindingObjectException when 'how' argument is invalid" do
- expect { browser.tfoot(no_such_how: 'some_value').exists? }.to raise_error(Watir::Exception::MissingWayOfFindingObjectException)
- expect { browser.table(index: 0).tfoot(no_such_how: 'some_value').exists? }.to raise_error(Watir::Exception::MissingWayOfFindingObjectException)
- end
end
describe "#[]" do
it "returns the row at the given index (page context)" do
expect(browser.tfoot(id: 'tax_totals')[0].id).to eq 'tfoot_row_1'