Method: Selenium::WebDriver::Support::Select#deselect_all
- Defined in:
- lib/selenium/webdriver/support/select.rb
permalink #deselect_all ⇒ Object
Deselect all selected options. Only valid if the element supports multiple selections.
155 156 157 158 159 |
# File 'lib/selenium/webdriver/support/select.rb', line 155 def deselect_all raise Error::UnsupportedOperationError, 'you may only deselect all options of a multi-select' unless multiple? .each { |e| deselect_option e } end |