spec/watirspec/element_hidden_spec.rb in watir-6.14.0 vs spec/watirspec/element_hidden_spec.rb in watir-6.15.0
- old
+ new
@@ -67,7 +67,13 @@
it 'handles in collections' do
elements = browser.divs(visible: false)
expect(elements.size).to eq 3
end
end
+
+ it 'raises exception when value is not Boolean' do
+ element = browser.body.element(visible: 'true')
+ msg = 'expected boolean, got "true":String'
+ expect { element.exists? }.to raise_exception(TypeError, msg)
+ end
end
end