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.php template:
    <a href="/click" class="link">Link</a>
    
  • Define a route for the /click path:
    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)

Commits related to this issue

Most upvoted comments

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 my setup (win7/ubuntu in local/prod env) it’s work ! Now, in my setup I’m using ChromeDriver 72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38) !

I faced this issue with the version 75 of chromedriver, I fixed it with downgrade to the version 74 !

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.0 of facebook/webdriver has 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.