Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/org/labkey/test/components/ui/grids/EditableGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -1055,14 +1055,9 @@ public void dragFill(WebElement startCell, WebElement endCell)
{
dismissPopover();
Locator.XPathLocator selectionHandleLoc = Locator.byClass("cell-selection-handle");
// Get the value from the start cell
String fillValue = getCellValue(startCell);
WebElement selectionHandle = selectionHandleLoc.waitForElement(getComponentElement(), 2_000);
WebElement selectionHandle = selectionHandleLoc.findElement(startCell);
dragToCell(selectionHandle, endCell);
// Handle appearing in endCell alone is insufficient — the selection can expand
// (handle moves) without fill values being applied. Wait for the actual value.
WebDriverWrapper.waitFor(() -> fillValue.equals(getCellValue(endCell)),
"Drag fill did not populate end cell with value: " + fillValue, 5_000);
selectionHandleLoc.waitForElement(endCell, 5_000);
}

public void selectCellRange(WebElement startCell, WebElement endCell)
Expand Down
Loading