public class CrudElement
extends com.vaadin.testbench.TestBenchElement
| Constructor and Description |
|---|
CrudElement() |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.testbench.TestBenchElement |
getEditor()
Gets the open editor overlay
|
com.vaadin.flow.component.button.testbench.ButtonElement |
getEditorCancelButton()
Gets the editor cancel button
|
com.vaadin.flow.component.button.testbench.ButtonElement |
getEditorDeleteButton()
Gets the editor delete button
|
String |
getEditorPosition()
Gets the editor position selected for the CRUD
Possible values are "" (default), "bottom" and "aside"
|
com.vaadin.flow.component.button.testbench.ButtonElement |
getEditorSaveButton()
Gets the editor save button
|
List<com.vaadin.flow.component.textfield.testbench.TextFieldElement> |
getFilterFields()
Gets the filter fields if the Crud built-in Grid is being used with filters enabled
|
GridElement |
getGrid()
Gets the crud grid
|
Optional<com.vaadin.testbench.TestBenchElement> |
getNewItemButton()
Gets the new item button
|
List<com.vaadin.testbench.TestBenchElement> |
getToolbar()
Gets the toolbar content.
|
boolean |
isEditOnClick()
Gets whether editor can be opened by a click on the row or not
|
boolean |
isEditorOpen()
Checks if an editor overlay is open on the default editor position
Otherwise, checks the value of editorOpened property
|
void |
openRowForEditing(int row)
Opens a grid row for editing using the CRUD edit button on that row
|
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, wrapElementspublic GridElement getGrid()
public Optional<com.vaadin.testbench.TestBenchElement> getNewItemButton()
public List<com.vaadin.flow.component.textfield.testbench.TextFieldElement> getFilterFields()
public List<com.vaadin.testbench.TestBenchElement> getToolbar()
public void openRowForEditing(int row)
row - the row to open for editingpublic com.vaadin.flow.component.button.testbench.ButtonElement getEditorSaveButton()
public com.vaadin.flow.component.button.testbench.ButtonElement getEditorCancelButton()
public com.vaadin.flow.component.button.testbench.ButtonElement getEditorDeleteButton()
public boolean isEditorOpen()
true if the editor is open and false, otherwisepublic String getEditorPosition()
public boolean isEditOnClick()
true if feature is enabled or false otherwisepublic com.vaadin.testbench.TestBenchElement getEditor()
Copyright © 2020. All rights reserved.