java – selenium – how to add latest chrome driver
I am doing Selenium training and my chrome browser is Version 116.0.5845.140 in Mac.
I couldn’t find Chrome driver exe for this version instead it’s providing like below googlechromelabs.github.io/chrome-for-testing/#stable
When I go to driver page it show application file and not exe file.
I am not sure how to configure it access from selenium.
System.setProperty(“webdriver.chrome.driver”,”/Users/abc/Documents/chromedriver”);
Error during execution of application.
INFO: Driver logs no longer sent to console by default; www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output
Exception in thread “main” org.openqa.selenium.remote.NoSuchDriverException: chromedriver located at /Users/abc/Documents/chromedriver, but invalid
For documentation on this error, please visit: www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/
Read more here: Source link
