Method: Selenium::Client::GeneratedDriver#get_selected_value

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

#get_selected_value(selectLocator) ⇒ Object

Gets option value (value attribute) for selected option in the specified select element.

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



1013
1014
1015
# File 'lib/selenium/client/legacy_driver.rb', line 1013

def get_selected_value(selectLocator)
    return string_command("getSelectedValue", [selectLocator,])
end