From 4aa1fd39180699b8fc329be1bf4b04a009bc1831 Mon Sep 17 00:00:00 2001 From: labkey-tchad Date: Tue, 31 May 2022 12:19:54 -0700 Subject: [PATCH] Update to Selenium 4.2 Stop using deprecated `WebDriverWait` constructor --- .../test/tests/panoramapublic/PanoramaPublicBaseTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java b/panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java index 980b4ea2..449a341f 100644 --- a/panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java +++ b/panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java @@ -26,6 +26,7 @@ import org.openqa.selenium.support.ui.WebDriverWait; import java.io.File; +import java.time.Duration; import java.util.List; import static org.junit.Assert.assertEquals; @@ -234,7 +235,7 @@ private void makeCopy(String projectName, String folderName, String experimentTi clickAndWait(copyLink); // In the copy form's folder tree view select the Panorama Public project as the destination. - Locator.tagWithClass("span", "x4-tree-node-text").withText(PANORAMA_PUBLIC).waitForElement(new WebDriverWait(getDriver(), 5)).click(); + Locator.tagWithClass("span", "x4-tree-node-text").withText(PANORAMA_PUBLIC).waitForElement(new WebDriverWait(getDriver(), Duration.ofSeconds(5))).click(); // Enter the name of the destination folder in the Panorama Public project setFormElement(Locator.tagWithName("input", "destContainerName"), destinationFolder); uncheck("Assign ProteomeXchange ID:");