I want to write java web automation code with selenium. Although I have added Chrome.exe to my project, the page I want does not open when I run it. It closes immediately and I don't get any errors.
CodePudding user response:
As what shown in the picture , the driver version is not match with the browser version, I think the solution is : Update your chrome browser or download the right verion of the driver from the below url : https://sites.google.com/chromium.org/driver/home
CodePudding user response:
As per the snapshot your main issue is the incompatibility between the version of the binaries you are using as follows:
- Your JDK version 1.8.0_201 is old and ancient.
- You are using chromedriver=97.0.4692.36
- Release Notes of chromedriver=97.0.4692.36 clearly mentions the following :
Supports Chrome version 97
- You are using chrome=96.0.4664.110
- Release Notes of ChromeDriver v96.0.4664.45 clearly mentions the following :
Supports Chrome version 96
So there is a clear mismatch between chrome=96.0.4664.110 and the chromedriver=97.0.4692.36
Solution
Ensure that:
- JDK is upgraded to current levels JDK 8u301.
- Selenium is upgraded to current released Version 3.141.59.
- ChromeDriver is updated to current ChromeDriver v96.0.4664.45 level.
- Chrome is updated to current Chrome Version 96.0 level. (as per ChromeDriver v96.0.4664.45 release notes).