An NDoc Documented Class Library

DefaultSelenium.GetValue Method 

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.

public string GetValue(
   string locator
);

Parameters

locator
an element locator

Return Value

the element value, or "on/off" for checkbox/radio elements

Implements

ISelenium.GetValue

See Also

DefaultSelenium Class | Selenium Namespace