Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 9 additions & 3 deletions src/org/labkey/test/components/CustomizeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,17 @@ private void addItem(CharSequence fieldKey, ViewItemType type)

// Expand all nodes necessary to reveal the desired node.
WebElement fieldRow = expandPivots(fieldKey);
WebElement checkbox = Locator.css("input[type=button]").findElement(fieldRow);
WebElement rowLabel = Locator.byClass("x4-tree-node-text").findElement(fieldRow);
rowLabel.click();
WebElement checkbox = Locator.css("input[type=button]").refindWhenNeeded(fieldRow);

// In some situations calling Checkbox(checkbox).check() doesn't always check the checkbox. Verify that it has
// been checked, and if not try again.
ScrollUtils.scrollIntoView(checkbox);
new Checkbox(checkbox).check();
if (!new Checkbox(checkbox).isChecked())
{
new Checkbox(checkbox).check();
}

itemXPath(type, fieldKey).waitForElement(this, 2_000);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private WebElement waitForNotificationList()

// Find the container again, don't return listContainer WebElement previously found. If the list was slow to
// update with the most recent notification the old reference will be stale.
return notificationsContainerLocator.waitForElement(elementCache().menuContent, 1_000);
return notificationsContainerLocator.refindWhenNeeded((elementCache().menuContent));
}

/**
Expand Down