Testing_Selenium::isChecked
Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.
Signature
public function isChecked(string
$locatorĀ )
Parameters
-
$locator
- an element locator pointing to a checkbox or radio button
Returns
- boolean
- true if the checkbox is checked, false otherwise