Added implicit timeout handling

This commit is contained in:
Dirk Jahnke 2019-07-25 15:37:09 +02:00
parent f21728a1ef
commit 4fdfaa12ca
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,5 @@
package org.fremo.fredl.test; package org.fremo.fredl.test;
import java.util.TimeSpan;
import java.util.TimeUnit;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement; import org.openqa.selenium.WebElement;
@ -24,7 +22,7 @@ public class BasicTest {
public void testSetUp() { public void testSetUp() {
driver = new HtmlUnitDriver(true); driver = new HtmlUnitDriver(true);
wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeoutInSeconds)); wait = new WebDriverWait(driver, timeoutInSeconds);
driver.manage().timeouts().implicitlyWait(implicitTimeoutMilliseconds, TimeUnit.MILLISECONDS); driver.manage().timeouts().implicitlyWait(implicitTimeoutMilliseconds, TimeUnit.MILLISECONDS);
} }