An NDoc Documented Class Library |

# ISelenium.IsChecked Method

Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.

bool IsChecked(
string locator
);

#### Parameters

locator
  an element locator pointing to a checkbox or radio button

#### Return Value

true if the checkbox is checked, false otherwise

#### See Also

ISelenium Interface | Selenium Namespace