Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.
Namespace: SeleniumAssembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- locator
- Type:
System String
an element locator pointing to a checkbox or radio button
Return Value
true if the checkbox is checked, false otherwiseSee Also