SelectElementSelectByValue Method
Select an option by the value.

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 String

instance.SelectByValue(value)

Parameters

value
Type: SystemString
The value of the option to be selected.
Exceptions
ExceptionCondition
NoSuchElementErrorThrown when no element with the specified value is found.
Remarks
When given "foo" this method will select an option like:

<option value="foo">Bar</option>

See Also