Skip to content

Commit

Permalink
increase implicitlyWait for WebDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhjyotsingh committed Mar 18, 2016
1 parent b45663d commit 734a901
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ abstract public class AbstractZeppelinIT {
protected WebDriver driver;

protected final static Logger LOG = LoggerFactory.getLogger(AbstractZeppelinIT.class);
protected static final long MAX_IMPLICIT_WAIT = 30;
protected static final long MAX_BROWSER_TIMEOUT_SEC = 30;
protected static final long MAX_PARAGRAPH_TIMEOUT_SEC = 60;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.concurrent.TimeUnit;

import static org.junit.Assert.fail;

Expand Down Expand Up @@ -114,6 +115,8 @@ public static WebDriver getWebDriver() {

long start = System.currentTimeMillis();
boolean loaded = false;
driver.manage().timeouts().implicitlyWait(AbstractZeppelinIT.MAX_IMPLICIT_WAIT,
TimeUnit.SECONDS);
driver.get(url);

while (System.currentTimeMillis() - start < 60 * 1000) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void testRemoveButton() throws Exception {
deleteTestNotebook(driver);

} catch (Exception e) {
handleException("Exception in ParagraphActionsIT while testMoveUpAndDown ", e);
handleException("Exception in ParagraphActionsIT while testRemoveButton ", e);
}
}

Expand Down

0 comments on commit 734a901

Please sign in to comment.