Package io.jmix.masquerade.component
Class DataGrid
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<DataGrid>
Web-element wrapper for data grid. Supports selecting all rows, getting
rows,
getting header rows, getting cells, getting header cells
and clicking on rows.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAbstract class for data grid cell.protected static classDataGrid.AbstractRow<T extends DataGrid.AbstractRow<T,C>, C extends DataGrid.AbstractCell<C>> Abstract class for data grid row.static classWeb-element wrapper for data grid cell.static classWeb-element wrapper for data grid header cell.static classWeb-element wrapper for data grid header row.static classWeb-element wrapper for data grid row. -
Field Summary
FieldsFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclickRow(org.openqa.selenium.By by) Clicks on theDataGrid.Rowif it is possible.Clicks on the select all checkbox.getCellBy(org.openqa.selenium.By by) getCellByIndex(int rowIndex, int colIndex) getHeaderCellBy(org.openqa.selenium.By by) getHeaderCellByIndex(int rowIndex, int colIndex) getHeaderRow(int index) getHeaderRowBy(org.openqa.selenium.By by) protected StringgetRowBy(org.openqa.selenium.By by) getRowByIndex(int index) protected com.codeborne.selenide.SelenideElementprotected booleanMethods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
check, should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Field Details
-
TABLE_BODY_CSS_SELECTOR
- See Also:
-
TABLE_HEADER_CSS_SELECTOR
- See Also:
-
-
Constructor Details
-
DataGrid
public DataGrid(org.openqa.selenium.By by)
-
-
Method Details
-
clickSelectAll
Clicks on the select all checkbox.- Returns:
thisto call fluent API
-
getRowByIndex
- Parameters:
index- row index to get (indexing starts with0)- Returns:
DataGrid.Rowweb-element wrapper
-
getRowBy
- Parameters:
by-Byselector to find the row- Returns:
DataGrid.Rowweb-element wrapper
-
getHeaderRow
- Parameters:
index- header row index to get (indexing start with0)- Returns:
DataGrid.HeaderRowweb-element wrapper
-
getHeaderRowBy
- Parameters:
by-Byselector to find the header row- Returns:
DataGrid.HeaderRowweb-element wrapper
-
getCellByIndex
- Parameters:
rowIndex- cell row index (indexing start with0)colIndex- cell column index (indexing start with0)- Returns:
DataGrid.Cellweb-element wrapper
-
getCellBy
- Parameters:
by-Byselect to find the cell- Returns:
DataGrid.Cellweb-element wrapper
-
getHeaderCellByIndex
- Parameters:
rowIndex- header cell row index (indexing start with0)colIndex- header cell column index (indexing start with0)- Returns:
DataGrid.HeaderCellweb-element wrapper
-
getHeaderCellBy
- Parameters:
by-Byselect to find the header cell- Returns:
DataGrid.HeaderCellweb-element wrapper
-
clickRow
Clicks on theDataGrid.Rowif it is possible.- Parameters:
by-Byselector to findDataGrid.Rowweb-element- Returns:
thisto call fluent API
-
getHostCssSelector
-
getSelectAllCheckbox
protected com.codeborne.selenide.SelenideElement getSelectAllCheckbox() -
isMultiSelect
protected boolean isMultiSelect()
-