Testing_Selenium::getValue
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.
Signature
public function getValue(string
$locatorĀ )
Parameters
-
$locator
- an element locator
Returns
- string
- the element value, or "on/off" for checkbox/radio elements