SelectElementSelectByIndex Method |
Select the option by the index, as determined by the "index" attribute of the element.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As SelectElement
Dim index As Integer
instance.SelectByIndex(index)
Parameters
- index
- Type: SystemInt32
The value of the index attribute of the option to be selected.
Exceptions Exception | Condition |
---|
NoSuchElementError | Thrown when no element exists with the specified index attribute. |
See Also