Gets the selected item within the select element.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public IWebElement SelectedOption { get; }
Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchElementException | Thrown if no option is selected. |
Remarks
See Also