Method: Selenium::Client::GeneratedDriver#get_selected_index

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

#get_selected_index(selectLocator) ⇒ Object

Gets option index (option number, starting at 0) for selected option in the specified select element.

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



1029
1030
1031
# File 'lib/selenium/client/legacy_driver.rb', line 1029

def get_selected_index(selectLocator)
    return string_command("getSelectedIndex", [selectLocator,])
end