public static interface ComboBox.Select
ComboBox.getSelect(WebElement)
Modifier and Type | Interface and Description |
---|---|
static class |
ComboBox.Select.Option
This class wraps a combo box option object.
For now, the embedded option object can be a WebElement or a Map. Jan 15, 2014 (sbjlwa) Initial release. |
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<ComboBox.Select.Option> |
getAllSelectedOptions() |
java.util.List<java.lang.String> |
getAllSelectedOptionsText() |
ComboBox.Select.Option |
getFirstSelectedOption() |
ComboBox.Select.Option |
getItemByIndex(int index) |
java.util.List<ComboBox.Select.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() |
ComboBox.Select.Option getItemByIndex(int index)
index
- int, the index for an option, 0-based.boolean isMultiple()
java.util.List<ComboBox.Select.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<ComboBox.Select.Option> getAllSelectedOptions()
java.util.List<java.lang.String> getAllSelectedOptionsText()
ComboBox.Select.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