IWebElementSelected Property WebDriver
Gets a value indicating whether or not this element is selected.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

bool Selected { get; }

Property Value

Type: Boolean
Exceptions

ExceptionCondition
StaleElementReferenceExceptionThrown when the target element is no longer valid in the document DOM.
Remarks

This operation only applies to input elements such as checkboxes, options in a select element and radio buttons.
See Also

Reference