Skip to content

Commit cdc0d7d

Browse files
committed
issue#58 add spec for: 'when provided texts of disabled option' context
1 parent 7273875 commit cdc0d7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/node_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ module Ferrum
163163
to raise_exception(Ferrum::JavaScriptError, /Element is not a <select> element/)
164164
end
165165
end
166+
167+
context "when provided texts of disabled option" do
168+
it "picks disabled option with no exception" do
169+
expect(browser.at_xpath("//*[@id='form_title']").select(["Other"]).selected).to eq(["Other"])
170+
end
171+
end
166172
end
167173

168174
context "when the element is not in the viewport" do

0 commit comments

Comments
 (0)