This error message...
Error : This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path
...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
- You are using chrome=96.0.4664.45
- Release Notes of ChromeDriver v96.0 clearly mentions the following :
Supports Chrome version 96
- But you are using chromedriver=97.0
- Release Notes of chromedriver=97.0 clearly mentions the following :
Supports Chrome version 97
So there is a clear mismatch between chromedriver=97.0 and the chrome=96.0
Solution
Ensure that: