From edb82d02ad35b5aff3ef89c8fda5ce5beee317c5 Mon Sep 17 00:00:00 2001 From: labkey-tchad Date: Tue, 31 May 2022 12:19:56 -0700 Subject: [PATCH] Update to Selenium 4.2 Stop using deprecated `WebDriverWait` constructor --- test/src/org/labkey/test/pages/cds/CDSPlot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/src/org/labkey/test/pages/cds/CDSPlot.java b/test/src/org/labkey/test/pages/cds/CDSPlot.java index adeebb1d5..598521c18 100644 --- a/test/src/org/labkey/test/pages/cds/CDSPlot.java +++ b/test/src/org/labkey/test/pages/cds/CDSPlot.java @@ -34,6 +34,7 @@ import org.openqa.selenium.support.ui.ExpectedCondition; import org.openqa.selenium.support.ui.WebDriverWait; +import java.time.Duration; import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -178,7 +179,7 @@ public void waitForPointCount(int count, int msTimeout) final Integer pointCount = count; long secTimeout = msTimeout / 1000; secTimeout = secTimeout > 0 ? secTimeout : 1; - WebDriverWait wait = new WebDriverWait(_test.getDriver(), secTimeout); + WebDriverWait wait = new WebDriverWait(_test.getDriver(), Duration.ofSeconds(secTimeout)); try { wait.until(new ExpectedCondition()