Added implicit timeout handling
This commit is contained in:
parent
f21728a1ef
commit
4fdfaa12ca
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue