Skip to content

Instantly share code, notes, and snippets.

@nmschorr
Last active September 26, 2015 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmschorr/68d95bb752f84b2eccee to your computer and use it in GitHub Desktop.
Save nmschorr/68d95bb752f84b2eccee to your computer and use it in GitHub Desktop.
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