dusk so slow in Chrome 65

Created on 13 Mar 2018  路  13Comments  路  Source: laravel/dusk

I'm using Laravel Dusk 2.0.14 for Laravel 5.5 with phpunit 6.5.7.
After Chrome updated to latest version 65, php artisan dusk will run dusk with so slow performance (can take up to 10 minutes) and sometimes failed (supposed to be success) compared to Chrome 64 (great performance, under 2 minutes without single weird fail). Is this a bug or there's a way to fix it?

Most helpful comment

If I manually start the chromedriver (./vendor/laravel/dusk/bin/chromedriver-linux) , the test speed returns to normal. Running Laravel 5.5.39, dusk 2.0.14, phpunit 6.5.7, PHP 7.0.25-0ubuntu0.16.04.1 with Xdebug 2.4.0

All 13 comments

Dusk is delivered with ChromeDriver 2.35. Can you try the latest version 2.36?

@staudenmeir I guess not. How can I check my ChromeDriver version and how to upgrade it? I try via npm install but it just doesn't work.

Try this to check what version of chrome driver your dusk is using

./vendor/laravel/dusk/bin/chromedriver-linux --version
./vendor/laravel/dusk/bin/chromedriver-mac --version

I'm also finding that some tests that worked are no longer working with Chrome 65, driver 2.35.528139 and Dusk 2.0.14...mainly with iframes.

You can download the latest version here:
https://chromedriver.storage.googleapis.com/index.html?path=2.36/

The files are located here: vendor/laravel/dusk/bin

Are you running this on Homestead by chance?

Same issue here. When I do this in a Dusk test:

    $time = microtime(TRUE);
    $this->browse(function($browser) {
        dd(microtime(TRUE) - $time);

I get 12-13 seconds.

I tried the driver version 2.36 - I put it in vendor/laravel/dusk/bin. Unfortunately that didn't change anything.

@browner12 no. I'm using valet on Linux which has no problem with Chrome 64 before. But I'll try some advice from @staudenmeir and thanks a lot for all of you guys :) @carltondickson

by the way, is there an option for make vendor chromedriver always pull latest version when I run composer install command?

UPDATE: Still doesn't work with updated ChromeDriver to 2.36, instead I upgrade my Laravel version to 5.6.11. It got normal but with ChromeDriver 2.36 it much faster.

If I manually start the chromedriver (./vendor/laravel/dusk/bin/chromedriver-linux) , the test speed returns to normal. Running Laravel 5.5.39, dusk 2.0.14, phpunit 6.5.7, PHP 7.0.25-0ubuntu0.16.04.1 with Xdebug 2.4.0

I have the same problem using Chrome 66, the driver 2.38, and dusk 2.0.14. But starting the chromedriver manually as @curtjenk suggested works for me

Can you all upgrade to the latest Dusk and Laravel versions and check if the problem persists?

@curtjenk
I've tried both auto-start and manual start for chromedriver, but the speed was same for both.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joanlopez picture joanlopez  路  5Comments

dmitryuk picture dmitryuk  路  4Comments

susanBuck picture susanBuck  路  6Comments

pdbreen picture pdbreen  路  4Comments

antonioribeiro picture antonioribeiro  路  5Comments