public static interface ComboBox.Selectable extends IOperable
ComboBox#getSelect(WebElement)
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<Option> |
getAllSelectedOptions() |
java.util.List<java.lang.String> |
getAllSelectedOptionsText() |
Option |
getFirstSelectedOption() |
Option |
getItemByIndex(int index) |
java.util.List<Option> |
getOptions() |
java.util.List<java.lang.String> |
getOptionsValue() |
java.util.List<java.lang.String> |
getOptionsVisibleText() |
java.lang.String |
getOptionValue(int index) |
java.lang.String |
getOptionVisibleText(int index) |
void |
hidePopup() |
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.
|
void |
showPopup() |
clearCache
Option getItemByIndex(int index)
index
- int, the index for an option, 0-based.boolean isMultiple()
java.util.List<Option> getOptions()
java.util.List<java.lang.String> getOptionsVisibleText()
java.util.List<java.lang.String> getOptionsValue()
java.lang.String getOptionVisibleText(int index)
index
- int, the index for an option, 0-based.java.lang.String getOptionValue(int index)
index
- int, the index for an option, 0-based.java.util.List<Option> getAllSelectedOptions()
java.util.List<java.lang.String> getAllSelectedOptionsText()
Option 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 selected, 0-based.void selectByValue(java.lang.String value)
value
- The value to match againstvoid deselectAll()
java.lang.UnsupportedOperationException
- If the SELECT does not support multiple selectionsvoid deselectByValue(java.lang.String value)
value
- The value to match againstvoid deselectByIndex(int index)
index
- The option at this index will be deselected, 0-based.void deselectByVisibleText(java.lang.String text)
text
- The visible text to match againstvoid hidePopup() throws SeleniumPlusException
SeleniumPlusException
void showPopup() throws SeleniumPlusException
SeleniumPlusException
Copyright © SAS Institute. All Rights Reserved.