An NDoc Documented Class Library |

# ISelenium.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.

string GetValue(
string locator
);

#### Parameters

locator
  an element locator

#### Return Value

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

#### See Also

ISelenium Interface | Selenium Namespace