Method: Selenium::Client::GeneratedDriver#get_selected_label

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

#get_selected_label(selectLocator) ⇒ Object

Gets option label (visible text) for selected option in the specified select element.

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


997
998
999
# File 'lib/selenium/client/legacy_driver.rb', line 997

def get_selected_label(selectLocator)
    return string_command("getSelectedLabel", [selectLocator,])
end