Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Created March 14, 2021 17:36
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 eliasnogueira/fbce872e6d9f6e5480ca2c0e725d5613 to your computer and use it in GitHub Desktop.
Save eliasnogueira/fbce872e6d9f6e5480ca2c0e725d5613 to your computer and use it in GitHub Desktop.
Driver manager class to create a Google Chrome browser instance
public class ChromeDriverManager implements Factory {
@Override
public WebDriver createDriver() {
WebDriverManager.getInstance(CHROME).setup();
return new ChromeDriver();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment