Method: Selenium::Client::GeneratedDriver#get_selected_indexes

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

#get_selected_indexes(selectLocator) ⇒ Object

Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.

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



1021
1022
1023
# File 'lib/selenium/client/legacy_driver.rb', line 1021

def get_selected_indexes(selectLocator)
    return string_array_command("getSelectedIndexes", [selectLocator,])
end