Permalink
Browse files

remove global wait test. If needed, user driver.manage().timeout() to…

… set a global timeout.
  • Loading branch information...
1 parent da35b45 commit a9ecc8fd2f8ee8b3733e17c5b7111f6d0c1ff380 @MathildeLemee MathildeLemee committed Apr 22, 2012
@@ -27,7 +27,7 @@
public abstract class FluentTest extends FluentAdapter {
@Before
public final void beforeConstructTest() {
- this.setDriver(getDefaultDriver());
+ this.initFluent(getDefaultDriver());
initTest();
}
@@ -46,7 +46,7 @@ public Fluent(WebDriver driver) {
public Fluent() {
}
- protected final void setDriver(WebDriver driver) {
+ protected final void initFluent(WebDriver driver) {
this.driver = driver;
this.search = new Search(driver);
if (driver != null) {
@@ -10,7 +10,6 @@
import org.openqa.selenium.support.pagefactory.ElementLocator;
import org.openqa.selenium.support.pagefactory.ElementLocatorFactory;
import org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler;
-import org.openqa.selenium.support.ui.WebDriverWait;
import java.lang.reflect.*;
@@ -109,10 +108,6 @@ public WebDriver getDefaultDriver() {
return new FirefoxDriver();
}
- public WebDriverWait getDefaultWait() {
- return new WebDriverWait(getDefaultDriver(), 30);
- }
-
public static void assertAt(FluentPage fluent) {
fluent.isAt();
@@ -25,7 +25,7 @@
@BeforeClass
public void beforeClass() {
- this.setDriver(getDefaultDriver());
+ this.initFluent(getDefaultDriver());
initTest();
}

0 comments on commit a9ecc8f

Please sign in to comment.