Select an option by the value.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- value
- Type:
System String
The value of the option to be selected.
Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchElementException | Thrown when no element with the specified value is found. |
Remarks
<option value="foo">Bar</option>
See Also