public interface ISelect
Modifier and Type | Method and Description |
---|---|
void |
deselectAll()
Clear all selected entries.
|
void |
deselectByIndex(int index)
Deselect the option at the given index.
|
void |
deselectByValue(java.lang.String value)
Deselect all options that have a value matching the argument.
|
void |
deselectByVisibleText(java.lang.String text)
Deselect all options that display text matching the argument.
|
java.util.List<org.openqa.selenium.WebElement> |
getAllSelectedOptions() |
org.openqa.selenium.WebElement |
getFirstSelectedOption() |
java.util.List<org.openqa.selenium.WebElement> |
getOptions() |
boolean |
isMultiple() |
void |
selectByIndex(int index)
Select the option at the given index.
|
void |
selectByValue(java.lang.String value)
Select all options that have a value matching the argument.
|
void |
selectByVisibleText(java.lang.String text)
Select all options that display text matching the argument.
|
boolean isMultiple()
java.util.List<org.openqa.selenium.WebElement> getOptions()
java.util.List<org.openqa.selenium.WebElement> getAllSelectedOptions()
org.openqa.selenium.WebElement getFirstSelectedOption()
void selectByVisibleText(java.lang.String text)
text
- The visible text to match againstvoid selectByIndex(int index)
index
- The option at this index will be selectedvoid selectByValue(java.lang.String value)
value
- The value to match againstvoid deselectAll()
void deselectByValue(java.lang.String value)
value
- The value to match againstvoid deselectByIndex(int index)
index
- The option at this index will be deselectedvoid deselectByVisibleText(java.lang.String text)
text
- The visible text to match against