Skip to content

Commit

Permalink
Test Fixes related to react-router upgrade (#1747)
Browse files Browse the repository at this point in the history
Fix locator issues causing stale element references
  • Loading branch information
labkey-alan authored Dec 20, 2023
1 parent f063aad commit 4c41db4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/org/labkey/test/components/ui/grids/EditableGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ public Integer getRowIndex(String columnLabel, String text)
public WebElement getCell(int row, String column)
{
int columNumber = getColumnIndex(column) + 1;
WebElement gridCell = getRow(row).findElement(By.cssSelector("td:nth-of-type(" + columNumber + ")"));
return gridCell;
return Locator.css("td:nth-of-type(" + columNumber + ")").findElement(getRow(row));
}

public boolean isCellReadOnly(int row, String column)
Expand Down

0 comments on commit 4c41db4

Please sign in to comment.