public class ComboBoxElement extends TestBenchElement implements HasLabel, HasSelectByText
<vaadin-combo-box>
element.| Constructor and Description |
|---|
ComboBoxElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
closePopup()
Close the popup with options, if it is open.
|
String |
getFilter()
Gets the filter for the options in the popup.
|
List<String> |
getOptions()
Gets a list of all available options.
|
String |
getSelectedText()
Gets the text of the currently selected option.
|
boolean |
isPopupOpen()
Checks whether the popup with options is open.
|
void |
openPopup()
Opens the popup with options, if it is not already open.
|
void |
selectByText(String text)
Selects the first option matching the given text.
|
void |
setFilter(String filter)
Sets the filter for the options in the popup.
|
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElementsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, setProperty, setProperty, setProperty, setPropertyclear, click, findElement, findElements, getAttribute, getCssValue, getLocation, getRect, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit$, $public void selectByText(String text)
HasSelectByTextselectByText in interface HasSelectByTexttext - the text of the option to selectpublic String getSelectedText()
HasSelectByTextgetSelectedText in interface HasSelectByTextpublic void openPopup()
public void closePopup()
public boolean isPopupOpen()
true if the popup is open, false
otherwiseFpublic List<String> getOptions()
public void setFilter(String filter)
filter - the filter to use for filtering optionspublic String getFilter()
Copyright © 2018. All rights reserved.