Description
I have been working with GHOSTS for nearly two months, and recently the BrowserChrome
handler stopped working on Windows machines. It used to work with the chromedriver shipped in the archive, but now I have to download a newer version of chromedriver and overwrite it manually. The error message produced using the stock chromedriver from the archive looks like this:
17/10/2024 6:48:21 AM|Error|Ghosts.Client.Handlers.BrowserChrome.ChromeEx|System.InvalidOperationException: session not created: This version of ChromeDriver only supports Chrome version 124
Current browser version is 130.0.6723.58 with binary path C:\Users\Administrator\.cache\selenium\chrome\win64\130.0.6723.58\chrome.exe (SessionNotCreated)
17/10/2024 6:48:25 AM|Error|Ghosts.Client.Handlers.BrowserChrome.ChromeEx|System.InvalidOperationException: session not created: This version of ChromeDriver only supports Chrome version 124
Current browser version is 130.0.6723.58 with binary path C:\Users\Administrator\.cache\selenium\chrome\win64\130.0.6723.58\chrome.exe (SessionNotCreated)
Please forgive me for running GHOSTS under Administrator. This is currently proof of concept, and I don't think this can be the cause of the problem.
FYI, the platform I'm running it on is an AWS EC2 instance (t3.small), with Windows Server 2022 21H2.
I'm very much interested in how the chrome/selenium packages are downloaded because I didn't see any explicit code related to that, is it provided by the OpenQA.Selenium
package? It will be great if there's a way to pin both the version of chrome/selenium and chromedriver so that this version mismatch will not occur in production.
Any thoughts or suggestions are welcomed, and thanks in advance!