Mar 16, 2022
0
Level 1
How to update ChromeDriver?
I'm using Laravel 8 and running Dusk tests on a Linux system. It's been working pretty well for a while, but now I'm running into some issues, and I want to make sure I have the latest ChromeDriver.
When I get an error from "sail dusk", it shows this version:
1) Tests\Browser\...::...
Facebook\WebDriver\Exception\NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"..."}
(Session info: chrome=98.0.4758.102)
It shows that same version in the terminal where "sail up" is running:
selenium_1 | Starting ChromeDriver 98.0.4758.102
When I try to update it, it says:
$ sail artisan dusk:chrome-driver --detect
Chrome version could not be detected.
ChromeDriver binary successfully installed for version 99.0.4844.51.
And I seem to have that v99 now:
$ vendor/laravel/dusk/bin/chromedriver-linux --version
ChromeDriver 99.0.4844.51
Yet even after restarting "sail up", the terminal & my tests still show the old v98.x.
How can I fix this?
Thanks for any advice.
Please or to participate in this conversation.