Select all options by the text displayed.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- text
- Type:
System String
The text of the option to be selected. If an exact match is not found, this method will perform a substring match.
Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchElementException | Thrown if there is no element with the given text present. |
Remarks
<option value="foo">Bar</option>
See Also