Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Select list now raises when selecting disabled option
Browse files Browse the repository at this point in the history
Related to watir/watir-webdriver#378
  • Loading branch information
p0deje committed Oct 9, 2015
1 parent 4476008 commit ba11649
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions select_list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,8 @@
expect { browser.select_list(name: "new_user_country").select(/missing_option/) }.to raise_error(Watir::Exception::NoValueFoundException)
end

bug "https://github.com/watir/watir-webdriver/pull/378" do
it "raises ObjectDisabledException if the option is disabled" do
expect { browser.select_list(name: "new_user_languages").select("Russian") }.to raise_error(Watir::Exception::ObjectDisabledException)
end
it "raises ObjectDisabledException if the option is disabled" do
expect { browser.select_list(name: "new_user_languages").select("Russian") }.to raise_error(Watir::Exception::ObjectDisabledException)
end

it "raises a TypeError if argument is not a String, Regexp or Numeric" do
Expand Down

0 comments on commit ba11649

Please sign in to comment.