[ISSUE] https://www.baeldung.com/java-selenium-webdriver-path-error needs changes per chrome driver > 115 version
vikramvi opened this issue · comments
Article and Module Links
https://www.baeldung.com/java-selenium-webdriver-path-error
Describe the Issue
Please update article with latest Chrome driver ( > 115 ) installation on Mac OS
To Reproduce
Steps to reproduce the behavior:
2 Downloaded mac-x64
- Unzipped file and moved "Google Chrome for Testing" to Applications
below code has stopped working
private static ChromeOptions options;
options = new ChromeOptions();
options.addArguments("--headless", "--disable-gpu", "--window-size=1920,1200","--ignore-certificate-errors","--disable-extensions","--no-sandbox","--disable-dev-shm-usage");
driver = new ChromeDriver(options);
Expected Behavior
- Chrome browser should be launched and start executing script
Screenshots
![Screen Shot 2023-12-28 at 7 58 33 AM](https://private-user-images.githubusercontent.com/308490/293163034-84aebf61-0e58-4fad-bf75-3405bc4ec6c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyMjg5MTAsIm5iZiI6MTcxOTIyODYxMCwicGF0aCI6Ii8zMDg0OTAvMjkzMTYzMDM0LTg0YWViZjYxLTBlNTgtNGZhZC1iZjc1LTM0MDViYzRlYzZjMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyNFQxMTMwMTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02OTgzZDQ2MmNhNDk2MWI5MDJhNWFlMDlhM2IzOGI4MDk4NTcwMzM5MjZhYTk3MzcwM2RjMDhjNTU0YWZkZmY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RGUxfkOLoqCaulvy6H2AOqxCUENT_ipiu1usowC-9yI)
Environment (please complete the following information):
- OS: Mac OS
- Browser [e.g. chrome, safari] : Chrome driver > 115
- Version [e.g. 22] > 115
Additional Context
Hi @vikramvi,
Please follow the below steps :
Initially please just check the version of your browser version by launching Chrome.
- Click on the 3 verticle Dots in the upper right corner of the browser.
- Scroll down and hover over the help option, Then click on About Google Chrome.
- A new window will appear that provides you the information about the browser
You will get the Version most probably 120.0.6099.xxx (Official Build) (x86_64)
Now go to the https://googlechromelabs.github.io/chrome-for-testing/#stable and follow the below steps:
- search your version there 120.0.6099
- Choose chromedriver not chrome (in the shared sreeenshot it was Chrome) and download according to your Mac machine in case its processor is Intel go for Platform mac-x64 else mac-arm64
- After downloading the correct zip you will find 2 items in the zip :
- chromedriver
- Licence.chromedriver
Perform the below steps:
- Create a resource folder in the src/test/
- Copy the downloaded chromedriver to src/test/resources and rename the chromedriver to chromedriver.exe to make it executable
Now run the ManualSetupLiveTest It will work !!
Let us know in case you face any issues while performing the above steps.
Thanks
As already commented, there's no problem with the article or code and the issue possibly is due to downloading an incorrect driver.