Create a gist now

Instantly share code, notes, and snippets.

protected WebDriver createDriver(Logger myLogger) throws AWTException, InterruptedException {
// the following 2 lines will dismiss the Windows crash alert dialog
AlertThread tAlertThread = new AlertThread("tAlertThread");
tAlertThread.start();
WebDriver localDriver = new FirefoxDriver(); // using this to see if bug goes away
localDriver.manage().timeouts().implicitlyWait(WAIT_TIME, TimeUnit.SECONDS); //for the entire test run
return localDriver;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment