| SelectElementSelectedOption Property |
Gets the selected item within the select element.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As SelectElement
Dim value As WebElement
value = instance.SelectedOption
Property Value
Type:
WebElement
Exceptions| Exception | Condition |
|---|
| NoSuchElementError | Thrown if no option is selected. |
RemarksIf more than one item is selected this will return the first item.
See Also