From 4fdfaa12caf8ffeb2deaf23a69e47cc06ceb094d Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 15:37:09 +0200 Subject: [PATCH] Added implicit timeout handling --- src/test/java/BasicTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index b2d638e..16707da 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -1,7 +1,5 @@ package org.fremo.fredl.test; -import java.util.TimeSpan; -import java.util.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; @@ -24,7 +22,7 @@ public class BasicTest { public void testSetUp() { driver = new HtmlUnitDriver(true); - wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeoutInSeconds)); + wait = new WebDriverWait(driver, timeoutInSeconds); driver.manage().timeouts().implicitlyWait(implicitTimeoutMilliseconds, TimeUnit.MILLISECONDS); }