Skip to content

Commit 3b58b54

Browse files
committed
Wait for active report panel to prevent NPEs
1 parent 1f75a9e commit 3b58b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ParticipantViewPage clickReportTab(String reportLabel)
115115

116116
public WebElement getActiveReportPanel()
117117
{
118-
return activeReportPanel.findElementOrNull(getDriver());
118+
return activeReportPanel.waitForElement(getDriver(), 2_000);
119119
}
120120

121121
public DataRegionTable getActiveReportDataRegion()

0 commit comments

Comments
 (0)