Method: Selenium::Client::GeneratedDriver#get_selected_labels

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

#get_selected_labels(selectLocator) ⇒ Object

Gets all option labels (visible text) for selected options in the specified select or multi-select element.

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


989
990
991
# File 'lib/selenium/client/legacy_driver.rb', line 989

def get_selected_labels(selectLocator)
    return string_array_command("getSelectedLabels", [selectLocator,])
end