public class ComboBoxElement
extends com.vaadin.testbench.TestBenchElement
implements com.vaadin.testbench.HasLabel, com.vaadin.testbench.HasSelectByText, com.vaadin.testbench.HasHelper
<vaadin-combo-box>
element.| Constructor and Description |
|---|
ComboBoxElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the value of the combobox.
|
void |
closePopup()
Close the popup with options, if it is open.
|
String |
getFilter()
Gets the filter for the options in the popup.
|
String |
getInputElementValue() |
List<String> |
getOptions()
Gets a list of all available options.
|
String |
getSelectedText() |
protected String |
getValue()
Gets the property "value" as a string.
|
boolean |
isAutoOpen()
Gets whether dropdown will open automatically or not.
|
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) |
void |
setFilter(String filter)
Sets the filter for the options in the popup.
|
protected void |
setValue(String value)
Sets the property "value" as a string.
|
callFunction, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, 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, setPropertypublic void clear()
clear in interface org.openqa.selenium.WebElementclear in class com.vaadin.testbench.TestBenchElementprotected void setValue(String value)
value - the value to setprotected String getValue()
public void selectByText(String text)
selectByText in interface com.vaadin.testbench.HasSelectByTextpublic String getSelectedText()
getSelectedText in interface com.vaadin.testbench.HasSelectByTextpublic String getInputElementValue()
public 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()
public boolean isAutoOpen()
false otherwiseCopyright © 2026. All rights reserved.