We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.testbench.
Package com.vaadin.testbench
Interface HasSelectByText
All Known Implementing Classes:
ComboBoxElement
, ListBoxElement
, RadioButtonGroupElement
, SelectElement
, TimePickerElement
public interface HasSelectByText
Implemented by elements which support selecting an option by matching the text shown to the user.
-
Method Summary
Modifier and TypeMethodDescriptionGets the text of the currently selected option.
void
selectByText
(String text) Selects the first option matching the given text.
-
Method Details
-
selectByText
Selects the first option matching the given text.
Parameters:
text
- the text of the option to select -
getSelectedText
String getSelectedText()Gets the text of the currently selected option.
Returns:
the text of the current option
-