| Modifier and Type | Method and Description |
|---|---|
List<Option> |
getOptions()
Gets the options of this select.
|
Option |
getSelectedOption()
Returns the selected option.
|
String |
getSelectedValue()
Returns the selected value.
|
String |
getSelectedVisibleText()
Returns the selected visible text.
|
Select |
selectByIndex(int index)
Selects the option at the given index.
|
Select |
selectByValue(String value)
Selects the option that has a value matching the argument.
|
Select |
selectByVisibleText(String text)
Selects the option that displays text matching the argument.
|
Select |
selectOption(Option option)
Selects an option of this select if not already selected.
|
and, getAttribute, getCssValue, getId, getStyleClass, getTitle, isDisplayedfindElement, findElementsList<Option> getOptions()
Option getSelectedOption()
String getSelectedValue()
String getSelectedVisibleText()
Select selectByIndex(int index)
index - The option at this index will be selected.Select selectByValue(String value)
value - The value to match against.Select selectByVisibleText(String text)
text - The visible text to match against.Copyright © 2013. All Rights Reserved.