From e0d7e796508736f74de0a511c2fc15e067b7659e Mon Sep 17 00:00:00 2001 From: Trey Chadick Date: Mon, 4 Aug 2025 11:44:48 -0700 Subject: [PATCH] Wait for active report panel to prevent NPEs (#999) --- ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java b/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java index 9b73ebaf2..7477a66de 100644 --- a/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java +++ b/ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java @@ -115,7 +115,7 @@ public ParticipantViewPage clickReportTab(String reportLabel) public WebElement getActiveReportPanel() { - return activeReportPanel.findElementOrNull(getDriver()); + return activeReportPanel.waitForElement(getDriver(), 2_000); } public DataRegionTable getActiveReportDataRegion()