Skip to content

Commit

Permalink
Merge 23.11 to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-teamcity committed Jan 30, 2024
2 parents eccbdfe + 5f3f70f commit 0c9b322
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/org/labkey/test/util/ext4cmp/Ext4GridRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,23 @@ public Ext4FieldRef getActiveEditor(int rowIdx, String colName)

return new Ext4FieldRef(fieldId, _test);
}

private boolean isCollapsed()
{
return Locator.xpath("//*[@id='" + this._id + "']//img[contains(@class, 'x4-tool-expand-bottom')]").isDisplayed(_test.getDriver());
}

// Handle collapsible grids
public void expand()
{
// If collapsed indicator is not present then the grid is either not collapsible or already expanded
if (isCollapsed())
{
Locator.xpath("//*[@id='" + this._id + "']//img[contains(@class, 'x4-tool-expand-bottom')]").
findElement(_test.getDriver()).click();

WebDriverWrapper.waitFor(() -> !isCollapsed(),
"Grid could not be expanded", 100000);
}
}
}

0 comments on commit 0c9b322

Please sign in to comment.