Selenium: how to run WebDriver in Chrome

Last updated on:

You need to download the executable driver from: chromedriver storage

Then all you need is before creating the driver object use the following (already shown in the correct order):

System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe");
WebDriver driver = new ChromeDriver();
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.