Skip to content

Commit bbb792e

Browse files
More logging.
Simpler selectors.
1 parent 7822fcf commit bbb792e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/org/labkey/test/components/ui/grids/QueryGrid.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public QueryGrid selectAllRows()
317317

318318
public boolean hasItemsSelected()
319319
{
320-
return Locator.tagWithClass("span", "selection-status__count").existsIn(elementCache());
320+
return Locator.byClass("selection-status__count").existsIn(elementCache());
321321
}
322322

323323
public String getSelectionStatusCount()
@@ -764,8 +764,8 @@ protected class ElementCache extends ResponsiveGrid<QueryGrid>.ElementCache
764764
final Locator.XPathLocator selectionStatusContainerLoc = Locator.tagWithClass("div", "selection-status");
765765
final Locator selectAllBtnLoc = selectionStatusContainerLoc.append(Locator.tagWithClass("span", "selection-status__select-all")
766766
.child(Locator.buttonContainingText("Select all")));
767-
final Locator clearBtnLoc = selectionStatusContainerLoc.append(Locator.tagWithClass("span", "selection-status__clear-all")
768-
.child(Locator.tagContainingText("button", "Clear")));
767+
final Locator clearBtnLoc = selectionStatusContainerLoc.append(Locator.byClass("selection-status__clear-all")
768+
.child(Locator.tag("button")));
769769

770770
final WebElement filterStatusPanel = Locator.css("div.grid-panel__filter-status").findWhenNeeded(this);
771771

0 commit comments

Comments
 (0)