I am trying to download a page from my own site. I am using webdrivermanager to avoid the problems with changing versions of chrome but I cannot get it to work. This is my code (with some things I tried commented out!):
This is my POM:
This is the output when I run it:
Starting ChromeDriver 118.0.5993.70 (e52f33f30b91b4ddfad649acddc39ab570473b86-refs/branch-heads/5993@{#1216}) on port 36682
Only local connections are allowed.
Please see
https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Exception in
thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: Chrome failed to start: was killed.
(chrome not reachable)
(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
I am running Chrome V 118.0.5993.71 but I don't think the last increment matters, it says it successfully started Chrome! Any thoughts on why it might be crashing?