Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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