Method: Selenium::Client::GeneratedDriver#get_selected_id

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

#get_selected_id(selectLocator) ⇒ Object

Gets option element ID for selected option in the specified select element.

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


1045
1046
1047
# File 'lib/selenium/client/legacy_driver.rb', line 1045

def get_selected_id(selectLocator)
    return string_command("getSelectedId", [selectLocator,])
end