dusk: Tests fail with the latest version of ChromeDriver
- Dusk Version: v5.1.0
- Laravel Version: v5.8.21
- PHP Version: 7.3.5
- Database Driver & Version: N/A
Description:
Tests are failing with the latest version of ChromeDriver 75.0.3770.8.
Steps To Reproduce:
- In a fresh installation of Laravel, add a link in the
welcome.blade.phptemplate:<a href="/click" class="link">Link</a> - Define a route for the
/clickpath:Route::get('/click', function () { return 'clicked'; }); - Run this test:
public function testBasicExample() { $this->browse(function (Browser $browser) { $browser->visit('/') ->assertSee('Laravel') ->click('.link') ->assertPathIs('/click'); }); }
The test is failing with version 75.0.3770.8 of ChromeDriver and is passing after php artisan dusk:chrome-driver 74.
Chrome version: 75.0.3770.80 OS: Mac
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 8
- Comments: 26 (11 by maintainers)
Links to this issue
Commits related to this issue
- Commeted langauge dusk test out because of dusk bug https://github.com/laravel/dusk/issues/651 — committed to esac-ic/esac.nl by deleted user 5 years ago
- Add latest version of facebook WebDriver Due to the latest version of the Chromedriver using W3C protocol by default, this commit requires the latest version of `facebook/webdriver`. The latest versi... — committed to marcusmyers/dusk by marcusmyers 5 years ago
omfg… I don’t even want to get started with what my issue was… apparently I have APP_URL=localhost and not APP_URL=http://localhost…
I have literally been struggling with this ALL day
The PR that bumps the facebook driver has been merged. Will do a new release tomorrow.
@atefBB I reinstalled the dusk and everything seems to be working 😃 with chrome 75
Hi @alpharameeztech ! I don’t know your
setup, but in mysetup(win7/ubuntuin local/prod env) it’s work ! Now, in mysetupI’m usingChromeDriver 72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38)!I tried first on the chrome version 74 but I get the error and when I upgraded to 75 I am facing the same error
@driesvints I have sent over a pull request that I did test all the way back to
laravel/dusk:3, as that was the version we were running up until today.Version
1.7.0offacebook/webdriverhas been released and fixes this issue.Change of the default protocol in Chromedriver 75 was met with a chromedriver bug causing click and other actions to not work, even with W3C protocol disabled.
There is now workaround in https://github.com/facebook/php-webdriver/pull/640 and we hope to get it released ASAP.