| Constructor and Description |
|---|
SelectImpl() |
| 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.
|
findElement, findElementsand, getAttribute, getCssValue, getId, getStyleClass, getTitle, isDisplayedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, getAttribute, getCssValue, getId, getStyleClass, getTitle, isDisplayedfindElement, findElementspublic List<Option> getOptions()
SelectgetOptions in interface Selectpublic Option getSelectedOption()
SelectgetSelectedOption in interface Selectpublic String getSelectedValue()
SelectgetSelectedValue in interface Selectpublic String getSelectedVisibleText()
SelectgetSelectedVisibleText in interface Selectpublic Select selectByIndex(int index)
SelectselectByIndex in interface Selectindex - The option at this index will be selected.public Select selectByValue(String value)
SelectselectByValue in interface Selectvalue - The value to match against.public Select selectByVisibleText(String text)
SelectselectByVisibleText in interface Selecttext - The visible text to match against.public Select selectOption(Option option)
SelectselectOption in interface Selectoption - The option to be selected.Copyright © 2013. All Rights Reserved.