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 class
Abstract class for data grid cell.protected static class
DataGrid.AbstractRow<T extends DataGrid.AbstractRow<T,
C>, C extends DataGrid.AbstractCell<C>> Abstract class for data grid row.static class
Web-element wrapper for data grid cell.static class
Web-element wrapper for data grid header cell.static class
Web-element wrapper for data grid header row.static class
Web-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.Row
if 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 String
getRowBy
(org.openqa.selenium.By by) getRowByIndex
(int index) protected com.codeborne.selenide.SelenideElement
protected boolean
Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
check, should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHave
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
this
to call fluent API
-
getRowByIndex
- Parameters:
index
- row index to get (indexing starts with0
)- Returns:
DataGrid.Row
web-element wrapper
-
getRowBy
- Parameters:
by
-By
selector to find the row- Returns:
DataGrid.Row
web-element wrapper
-
getHeaderRow
- Parameters:
index
- header row index to get (indexing start with0
)- Returns:
DataGrid.HeaderRow
web-element wrapper
-
getHeaderRowBy
- Parameters:
by
-By
selector to find the header row- Returns:
DataGrid.HeaderRow
web-element wrapper
-
getCellByIndex
- Parameters:
rowIndex
- cell row index (indexing start with0
)colIndex
- cell column index (indexing start with0
)- Returns:
DataGrid.Cell
web-element wrapper
-
getCellBy
- Parameters:
by
-By
select to find the cell- Returns:
DataGrid.Cell
web-element wrapper
-
getHeaderCellByIndex
- Parameters:
rowIndex
- header cell row index (indexing start with0
)colIndex
- header cell column index (indexing start with0
)- Returns:
DataGrid.HeaderCell
web-element wrapper
-
getHeaderCellBy
- Parameters:
by
-By
select to find the header cell- Returns:
DataGrid.HeaderCell
web-element wrapper
-
clickRow
Clicks on theDataGrid.Row
if it is possible.- Parameters:
by
-By
selector to findDataGrid.Row
web-element- Returns:
this
to call fluent API
-
getHostCssSelector
-
getSelectAllCheckbox
protected com.codeborne.selenide.SelenideElement getSelectAllCheckbox() -
isMultiSelect
protected boolean isMultiSelect()
-