GithubHelp home page GithubHelp logo

orchestral / dusk-updater Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 185 KB

Updater for Laravel Dusk ChromeDriver binaries

Home Page: https://packagist.org/packages/orchestra/dusk-updater

License: MIT License

PHP 100.00%
chromedriver dusk laravel

dusk-updater's People

Contributors

crynobone avatar murrant avatar stevethomas avatar thibauddauce avatar viezel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dusk-updater's Issues

`Update` returns result in contradiction with `detect --auto-update` that fails

  • Package Version: 7.7
  • Laravel Dusk Version: 7.7
  • PHP Version: 8.1

Description:

When I run the two basic commands, I get the following result
image

Is it normal to get results on update command and on detect --auto-update to get this exception and if I debug the process I get the errorOutput /usr/bin/google-chrome: not found

image

Steps To Reproduce:

Just run on ubuntu 22 using Laravel sail (Laravel 9) the commands update command and on detect --auto-update

Error Retrieving ChromeDriver on M1 Mac

  • Package Version: 1.5.1
  • Laravel Dusk Version: 7.1.1
  • PHP Version: 8.0.24

Description:

When attempting to run update command, the error Unable to retrieve ChromeDriver [106.0.5249.61] appears. This appears to be due to a change in the url for Mac m1 chromedriver binaries. See SeleniumHQ/selenium#11066

Steps To Reproduce:

On M1 Mac, run update command

OS detection returns windows when on WSL Ubuntu

  • Package Version: v1.2.1
  • Laravel Dusk Version: v5.11.0
  • PHP Version: 7.4.4

Description:

dusk-updater detect is unable to find the chrome installation when on WSL since the OS detection identifies it as windows. This is because $PHP_OS returns "win", which is more likely a php problem, but not one that's likely to be fixed anytime soon.

Additionally, I'm unable to simply pass in the path to the chrome installation because:

[InvalidArgumentException]
Chrome version cannot be detected in custom installation path on Windows.

Steps To Reproduce:

  1. Start with a Windows 10 machine with an ubuntu instance running in WSL, with php and chromium-browser installed
  2. Setup a project that uses dusk-updater.
  3. Run ./vendor/bin/dusk-updater detect --auto-update

Recommendation

Use php_uname('s') instead. On WSL Ubuntu, it correctly returns "Linux". Native windows returns "Windows NT". I don't have a Mac to test, but I would expect "Darwin" (https://www.php.net/manual/en/function.php-uname.php)

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.