Method: PageObject::Platforms::WatirWebDriver::SelectList#selected_values

Defined in:
lib/page-object/platforms/watir_webdriver/select_list.rb

#selected_valuesArray<String>

Returns An array of strings representing the value of the currently selected options.

Returns:

  • (Array<String>)

    An array of strings representing the value of the currently selected options.



50
51
52
# File 'lib/page-object/platforms/watir_webdriver/select_list.rb', line 50

def selected_values
  element.selected_options.map { |e| e.value }.compact
end