Skip to content

Commit

Permalink
wait for link element to exist (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-chrisj authored Aug 1, 2023
1 parent 4f747c5 commit 876c637
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/org/labkey/test/components/ui/grids/DetailTable.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 876c637

Please sign in to comment.