public class SelectElement
extends com.vaadin.testbench.TestBenchElement
implements com.vaadin.testbench.HasSelectByText, com.vaadin.testbench.HasLabel, com.vaadin.testbench.HasPlaceholder, com.vaadin.testbench.HasHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
SelectElement.ItemElement |
| Constructor and Description |
|---|
SelectElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
closePopup()
Closes the popup with options, if it is open.
|
List<SelectElement.ItemElement> |
getItems() |
Stream<SelectElement.ItemElement> |
getItemsStream() |
SelectElement.ItemElement |
getSelectedItem() |
SelectElement.ItemElement |
getSelectedOptionItem() |
String |
getSelectedText() |
boolean |
isOpened() |
void |
openPopup()
Opens the popup with options, if it is not already open.
|
void |
selectByText(String text) |
void |
selectItemByIndex(int index) |
callFunction, clear, 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 openPopup()
public void closePopup()
public boolean isOpened()
public void selectItemByIndex(int index)
public Stream<SelectElement.ItemElement> getItemsStream()
public List<SelectElement.ItemElement> getItems()
public void selectByText(String text)
selectByText in interface com.vaadin.testbench.HasSelectByTextpublic String getSelectedText()
getSelectedText in interface com.vaadin.testbench.HasSelectByTextpublic SelectElement.ItemElement getSelectedOptionItem()
public SelectElement.ItemElement getSelectedItem()
Copyright © 2023. All rights reserved.