Syntax
- Java
- deselectAll()
- deselectByIndex(int index)
- deselectByValue(java.lang.String value)
- deselectByVisibleText(java.lang.String text)
- getAllSelectedOptions()
- getFirstSelectedOption()
- getOptions()
- isMultiple()
- selectByIndex(int index)
- selectByValue(java.lang.String value)
- selectByVisibleText(java.lang.String text)
Parameters
| Parameters | Details |
|---|
| index | The option at this index will be selected |
| value | The value to match against |
| text | The visible text to match against |
Select class of Selenium WebDriver 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.
In C# the Select class is actually SelectElement