Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/org/labkey/test/components/ui/grids/GridRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public GridRow select(boolean checked)
return this;
}

public ReactCheckBox getCheckbox()
{
return elementCache().selectCheckbox;
}

/**
* gets the cell at the specified index
*/
Expand Down
7 changes: 6 additions & 1 deletion src/org/labkey/test/components/ui/grids/QueryGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ public boolean hasSelectAllButton()
return elementCache().selectAllBtnLoc.findWhenNeeded(this).isDisplayed();
}

public WebElement getSelectAllButton()
{
return elementCache().selectAllBtnLoc.findWhenNeeded(this);
}

/**
* Selects all rows in the target domain, including those on other pages, if there are any
*/
Expand Down Expand Up @@ -765,7 +770,7 @@ protected class ElementCache extends ResponsiveGrid<QueryGrid>.ElementCache

final Locator.XPathLocator selectionStatusContainerLoc = Locator.tagWithClass("div", "selection-status");
final Locator selectAllBtnLoc = selectionStatusContainerLoc.append(Locator.tagWithClass("span", "selection-status__select-all")
.child(Locator.buttonContainingText("Select all")));
.child(Locator.buttonContainingText("Select")));
final Locator clearBtnLoc = selectionStatusContainerLoc.append(Locator.byClass("selection-status__clear-all")
.child(Locator.tag("button")));

Expand Down