com.vaadin.flow.component.crud.testbench.
Class CrudElement
All Implemented Interfaces:
CanCompareScreenshots
, HasCallFunction
, HasDriver
, HasElementQuery
, HasPropertySettersGetters
, HasSearchContext
, HasTestBenchCommandExecutor
, org.openqa.selenium.SearchContext
, org.openqa.selenium.TakesScreenshot
, org.openqa.selenium.WebElement
, org.openqa.selenium.WrapsElement
TestBench element for the vaadin-crud element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the confirm cancel dialog
Gets the confirm delete dialog
Gets the open editor overlay
Gets the editor cancel button
Gets the editor delete button
Gets the editor position selected for the CRUD Possible values are "" (default), "bottom" and "aside"
Gets the editor save button
Gets the filter fields if the Crud built-in Grid is being used with filters enabled
getGrid()
Gets the crud grid
Gets the new item button
Gets the toolbar content.
boolean
Gets whether editor can be opened by a click on the row or not
boolean
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
Methods inherited from class com.vaadin.testbench.TestBenchElement
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, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
Methods inherited from interface org.openqa.selenium.WebElement
getAccessibleName, getAriaRole, getDomAttribute, getDomProperty, getShadowRoot
-
Constructor Details
-
CrudElement
public CrudElement()
-
-
Method Details
-
getGrid
Gets the crud grid
Returns:
the crud grid
-
getNewItemButton
Gets the new item button
Returns:
the new item button
-
getFilterFields
Gets the filter fields if the Crud built-in Grid is being used with filters enabled
Returns:
the filter field for each column
-
getToolbar
Gets the toolbar content.
Returns:
the toolbar content
-
openRowForEditing
public void openRowForEditing(int row) Opens a grid row for editing using the CRUD edit button on that row
Parameters:
row
- the row to open for editing -
getEditorSaveButton
Gets the editor save button
Returns:
the editor save button
-
getEditorCancelButton
Gets the editor cancel button
Returns:
the editor cancel button
-
getEditorDeleteButton
Gets the editor delete button
Returns:
the editor delete button
-
isEditorOpen
public boolean isEditorOpen()Checks if an editor overlay is open on the default editor position Otherwise, checks the value of editorOpened property
Returns:
true
if the editor is open andfalse
, otherwise -
getEditorPosition
Gets the editor position selected for the CRUD Possible values are "" (default), "bottom" and "aside"
Returns:
a string containing the value defined for the editor position
-
isEditOnClick
public boolean isEditOnClick()Gets whether editor can be opened by a click on the row or not
Returns:
true
if feature is enabled orfalse
otherwise -
getEditor
Gets the open editor overlay
Returns:
the open editor overlay
-
getConfirmCancelDialog
Gets the confirm cancel dialog
Returns:
the confirm cancel dialog
-
getConfirmDeleteDialog
Gets the confirm delete dialog
Returns:
the confirm delete dialog
-