WebDriver’s support classes called “Select”, which provides useful methods for interacting with select options. User can perform operations on a select dropdown and also de-select operation using the below methods.
Method Name: selectByIndex
Purpose: To Select the option based on the index given by the user.
There is an attribute called "values" which will have the index values.
The below is the sample html code using index