Skip to content

Commit 098e319

Browse files
committed
Use existing locator to find enabled button
1 parent f98c98c commit 098e319

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/org/labkey/test/tests/ParticipantReportTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ private void doParticipantReportTest()
266266
Window<?> saveAsDialog = new Window.WindowFinder(getDriver()).withTitle("Save As").waitFor();
267267
_extHelper.setExtFormElementByLabel("Save As", "Report Name", PARTICIPANT_REPORT2_NAME);
268268
_extHelper.setExtFormElementByLabel("Save As", "Report Description", PARTICIPANT_REPORT2_DESCRIPTION);
269-
Ext4Helper.Locators.ext4Button("Save").withoutAttributeContaining("class", "disabled")
270-
.waitForElement(saveAsDialog, 2_000).click();
269+
Ext4Helper.Locators.ext4ButtonEnabled("Save").waitForElement(saveAsDialog, 2_000).click();
271270
saveAsDialog.waitForClose();
272271
_ext4Helper.waitForComponentNotDirty("participant-report-panel-1");
273272
waitForTextToDisappear("Severity Grade");
@@ -279,8 +278,7 @@ private void doParticipantReportTest()
279278
saveAsDialog = new Window.WindowFinder(getDriver()).withTitle("Save As").waitFor();
280279
_extHelper.setExtFormElementByLabel("Save As", "Report Name", PARTICIPANT_REPORT_NAME);
281280
_extHelper.setExtFormElementByLabel("Save As", "Report Description", PARTICIPANT_REPORT2_DESCRIPTION);
282-
Ext4Helper.Locators.ext4Button("Save").withoutAttributeContaining("class", "disabled")
283-
.waitForElement(saveAsDialog, 2_000).click();
281+
Ext4Helper.Locators.ext4ButtonEnabled("Save").waitForElement(saveAsDialog, 2_000).click();
284282
Window<?> failureDialog = new Window.WindowFinder(getDriver()).withTitle("Failure").waitFor();
285283
assertTextPresent("Another report with the same name already exists.");
286284
clickButton("OK", 0);

0 commit comments

Comments
 (0)