Method: Selenium::Client::GeneratedDriver#get_value

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

#get_value(locator) ⇒ Object

Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be “on” or “off” depending on whether the element is checked or not.

‘locator’ is an element locator

[View source]

928
929
930
# File 'lib/selenium/client/legacy_driver.rb', line 928

def get_value(locator)
    return string_command("getValue", [locator,])
end