Skip to content

Commit 31e28c6

Browse files
committed
bulk edit helpers
1 parent 69e412d commit 31e28c6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,29 @@ public void applyTemplate(Ext4GridRef grid, String templateName, boolean bulkEdi
230230
}
231231
}
232232

233+
public Locator.XPathLocator openBulkEdit(Ext4GridRef grid)
234+
{
235+
grid.clickTbarButton("More Actions");
236+
_test.waitAndClick(Locator.tag("span").withText("Bulk Edit"));
237+
Locator.XPathLocator bulkEditWindow = Ext4Helper.Locators.window("Bulk Edit");
238+
_test.waitForElement(bulkEditWindow);
239+
return bulkEditWindow;
240+
}
241+
233242
public void toggleBulkEditField(String label)
234243
{
235244
Locator.XPathLocator l = Ext4Helper.Locators.window("Bulk Edit").append(Locator.tagContainingText("label", label + ":").withClass("x4-form-item-label"));
236245
_test.shortWait().until(ExpectedConditions.numberOfElementsToBe(l, 1)).get(0).click();
237246
_test.waitForElement(l.enabled());
238247
}
239248

249+
public void toggleBulkEditExactField(String label)
250+
{
251+
Locator.XPathLocator l = Ext4Helper.Locators.window("Bulk Edit").append(Locator.tagWithText("label", label + ":").withClass("x4-form-item-label"));
252+
_test.shortWait().until(ExpectedConditions.numberOfElementsToBe(l, 1)).get(0).click();
253+
_test.waitForElement(l.enabled());
254+
}
255+
240256
public void discardForm()
241257
{
242258
WebElement dataEntryButton = getDataEntryButton("More Actions").findElement(_test.getDriver());

0 commit comments

Comments
 (0)