Get Selected Option Index
Last modified: November 19, 2024
Description
Returns the index of the currently selected item of a WebElement, for example, select
Usage
Pass the parent WebElement of which you want to get the currently selected option’s index from.
Input Parameters
Name | Datatype | Required | Description |
---|---|---|---|
Select Element | WebElement | yes | The parent WebElement, for example, select |
Return Value
Name | Datatype | Description |
---|---|---|
Selected Option Index | Integer | The index of the currently selected WebElement |