Method: Selenium::SeleniumDriver#get_selected_index

Defined in:
lib/selenium-client.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



1116
1117
1118
# File 'lib/selenium-client.rb', line 1116

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