From 876c637b6773ff337a8a4d107cd9ab8a3137e00c Mon Sep 17 00:00:00 2001 From: Chris Joosse Date: Mon, 31 Jul 2023 20:25:07 -0700 Subject: [PATCH] wait for link element to exist (#1586) --- src/org/labkey/test/components/ui/grids/DetailTable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/labkey/test/components/ui/grids/DetailTable.java b/src/org/labkey/test/components/ui/grids/DetailTable.java index 6ea949004f..6f3785e294 100644 --- a/src/org/labkey/test/components/ui/grids/DetailTable.java +++ b/src/org/labkey/test/components/ui/grids/DetailTable.java @@ -1,7 +1,6 @@ package org.labkey.test.components.ui.grids; import org.labkey.test.Locator; -import org.labkey.test.WebDriverWrapper; import org.labkey.test.components.Component; import org.labkey.test.components.WebDriverComponent; import org.openqa.selenium.By; @@ -123,7 +122,7 @@ public void clickField(String fieldCaption) { // Should not click the container, it could be a td which would miss the clickable element. // Maybe this shouldn't assume an anchor but should be a generic(*)? - Locator.tag("a").findElement(getField(fieldCaption)).click(); + Locator.tag("a").waitForElement(getField(fieldCaption), 1500).click(); } /**