class Selenium::WebDriver::Support::Select
def deselect_by_text(text)
def deselect_by_text(text) raise Error::UnsupportedOperationError, 'you may only deselect option of a multi-select' unless multiple? opts = find_by_text text return deselect_options(opts) unless opts.empty? raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}" end