Select the option by the index, as determined by the "index" attribute of the element.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- index
- Type:
System Int32
The value of the index attribute of the option to be selected.
Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchElementException | Thrown when no element exists with the specified index attribute. |
See Also