You need to download the executable driver from:
ChromeDriver Download
Then use the following before creating the driver object (already shown in the correct order):
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
WebDriver driver = new ChromeDriver();
This was extracted from the most useful guide from the ChromeDriver Documentation.
More Related Contents:
- NoSuchElementException, Selenium unable to locate element
- How does chrome driver interact with Chrome browser?
- Is there a version of Selenium WebDriver that is not detectable?
- Page load strategy for Chrome driver (Updated till Selenium v3.12.0)
- Many process of Google Chrome (32 bit)
- What is benefit of using ChromeDriver over WebDriver if we are using only Chrome Browser in our Selenium Automation Script
- ERROR:ssl_client_socket_openssl.cc(1158)] handshake failed with ChromeDriver Chrome browser and Selenium
- Cannot get automation extension from timeout: Timed out receiving message from renderer
- Selenium how to manage wait for page load?
- selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
- What is the difference between WebDriver and WebElement in Selenium?
- Using implicit wait in selenium
- Selenium Google Login Block
- SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
- How to inspect element for Selenium v3.6 as FireBug is not an option any more for FF 56?
- Can Selenium WebDriver open browser windows silently in the background?
- java.lang.Error: Unresolved compilation problems : WebDriver/ChromeDriver cannot be resolved to a type error while executing selenium tests
- Server terminated early with status 1 error with Selenium for ChromeDriver and Chrome Browser and the log message “Only local connections are allowed”
- Clarification of the cause of mixing Implicit and Explicit waits in Selenium doc
- Selenium and non-headless browser keeps asking for Captcha
- Selenium on MAC, Message: ‘chromedriver’ executable may have wrong permissions
- Chrome – org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension at driver.manage().window().maximize();
- Undetected Chromedriver not loading correctly
- Selenium WebDriverException: unknown error: call function result missing ‘value’ while calling sendkeys method
- What is the difference between a CSS and XPath selector? And which is better with respect to performance for cross-browser testing?
- Selenium use chrome on Colab got unexpectedly exited
- Get PID of Browser launched by selenium
- selenium implicitly wait doesn’t work
- isElementPresent is very slow in case if element does not exist.
- selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while opening chrome browser