Giter Club home page Giter Club logo

Comments (9)

driesvints avatar driesvints commented on May 23, 2024

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

from dusk.

bobclewell avatar bobclewell commented on May 23, 2024

@driesvints I haven't heard anything from the StackOverflow or Laracast communities. It seems like a bug to me. Everything about my project is working correctly except php artisan dusk. I've even deployed updates to production.

For reference, my posts:

from dusk.

driesvints avatar driesvints commented on May 23, 2024

Thanks for trying out a different channel @bobclewell. Let's see what we can do here.

Could you provide a repo that reproduces the issue?

laravel new bug-report --github="--public"

from dusk.

bobclewell avatar bobclewell commented on May 23, 2024

@driesvints Some progress. The issue appears that the version of ChromeDriver (via the Google Chrome web browser client) installed on my computer is not supported by Dusk. The error:

SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 120.0.6099.216 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Does Dusk need an update or should I try to downgrade my Google Chrome browser client? If the latter, it's not obvious where I can get a version of Chrome that is running the v114 ChromeDriver, so any assistance there would be appreciated.

I've finally got a thread going in StackOverflow about this issue, FWIW. - https://stackoverflow.com/questions/77766234/when-running-php-artisan-dusk-the-tests-do-not-complete-they-just-hang?noredirect=1#comment137167953_77766234

from dusk.

driesvints avatar driesvints commented on May 23, 2024

Hi @bobclewell. Like you already indicated you can install the proper version for your OS using the chrome driver command. Since you have Chrome 120 installed but you have the chrome driver 114 locally this won't work. Try running one of these commands and see if that helps:

php artisan dusk:chrome-driver --detect

php artisan dusk:chrome-driver 120

Also see https://laravel.com/docs/10.x/dusk#managing-chromedriver-installations

from dusk.

bobclewell avatar bobclewell commented on May 23, 2024

@driesvints There doesn't appear to be a v120 of the GoogleDriver available.

file_get_contents(https://chromedriver.storage.googleapis.com/LATEST_RELEASE_120): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

from dusk.

driesvints avatar driesvints commented on May 23, 2024

There does: https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone-with-downloads.json

From 115 and up it uses a different way to determine the downloads. I really wonder why php artisan dusk:chrome-driver 120 doesn't works for you because the version is in the json above.

from dusk.

bobclewell avatar bobclewell commented on May 23, 2024

I think I fixed it. I ran:

composer require laravel/dusk --with-all-dependencies

Dusk was already installed, but my composer.json updated in this way...

-        "laravel/dusk": "^7.7",
+        "laravel/dusk": "^7.12",

Then...

php artisan dusk:chrome-driver --detect

...installed the v120 driver.

So, I now appear to have the correct driver. My tests are still showing errors and failures, but I think this is related to the root URL configured and I can try to work out this issue on my own. Feel free to close this issue, or let me know if you have any questions.

from dusk.

driesvints avatar driesvints commented on May 23, 2024

This fix was introduced in v7.9.0 so yeah that's it. I didn't caught that you were using an old version. Always make sure you're up to date with the latest version before you post an issue. Glad you found it 👍

https://github.com/laravel/dusk/blob/7.x/CHANGELOG.md#v790---2023-07-24

from dusk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.