When I try to run a Selenium test, I get an error
If you get the following error:
selenium.common.exceptions.SessionNotCreatedException (...This version of ChromeDriver only supports Chrome version...)
Make sure that (a) the version of your ChromeDriver is the same as the version of Chrome:
$ chromedriver --version
$ chrome --version
If they are not the same:
- download the appropriate version of ChromeDriver.
- unzip the file
- move the chromedriver file into the appropriate location.
- On Linux, that could be
/usr/bin
,$HOME/.local/bin
, etc. - Use the
which
command to check the location:$ which chromedriver
- On Linux, that could be
- Make sure the permissions are correct (755).
Still have questions?
Gitter Chat Support
Galaxy Help Forum
Want to embed this snippet (FAQ) in your GTN Tutorial?
{% snippet topics/dev/tutorials/debugging/faqs/selenium_error.md %}