Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code snippet showing the usage of WebDriverManager and a headless Google Chrome browser instantiation
@BeforeAll
static void webdrivermanagerSetup() {
WebDriverManager.chromedriver().setup();
ChromeOptions options = new ChromeOptions();
options.setHeadless(true);
driver = new ChromeDriver(options);
driver.get("https://github.com/bonigarcia/webdrivermanager");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment