SelectElementSelectedOption Property
Gets the selected item within the select element.

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As SelectElement
Dim value As WebElement

value = instance.SelectedOption

Property Value

Type: WebElement
Exceptions
ExceptionCondition
NoSuchElementErrorThrown if no option is selected.
Remarks
If more than one item is selected this will return the first item.
See Also