Method: Selenium::Client::GeneratedDriver#get_selected_values

Defined in:
lib/selenium/client/legacy_driver.rb

#get_selected_values(selectLocator) ⇒ Object

Gets all option values (value attributes) for selected options in the specified select or multi-select element.

‘selectLocator’ is an element locator identifying a drop-down menu



1005
1006
1007
# File 'lib/selenium/client/legacy_driver.rb', line 1005

def get_selected_values(selectLocator)
    return string_array_command("getSelectedValues", [selectLocator,])
end