Git Product home page Git Product logo

dusk-plugin's People

Contributors

octoberapp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dheia

dusk-plugin's Issues

"data:," as chromiumdriver URL

Hello, I've installed Laravel Dusk following the official documentation. Then, I installed this plugin as per your documentation.
I had to retrieve the CreatesApplication.php file as indicated here. I disabled headless mode by commenting out the line in the driver() function of the DuskTestCase.php.

If I launch "php artisan dusk --filter TESTNAME", I get the page with the URL "data:,".
I checked "APP_URL" into .env.

composer.json:

{
    //
    "require": {
        "php": "^8.0.2",
        "october/rain": "^3.2",
        "laravel/framework": "^9.0",
        "october/all": "^3.1",
        "rainlab/builder-plugin": "^1.2",
        "rainlab/user-plugin": "^2.0",
        "rainlab/dusk-plugin": "dev-main"
       //
    },
    "require-dev": {
        "phpunit/phpunit": "^8.5|^9.0",
        "laravel/dusk": "^7.9"
    },
    //
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
   //
}

$ chromium --version
Chromium 116.0.5845.140 snap
$ chromium.chromedriver --version
ChromeDriver 116.0.5845.140 (46fa58c804a9efde819900e8cee01821bde4576f-refs/branch-heads/5845@{#1610})
$ nginx -v
nginx version: nginx/1.22.0 (Ubuntu)

Failed to connect to localhost port 9515: Connection refused

I'm using the official docker container of october 3.
I also installed the laravel dusk dependency and the dusk plugin.

php artisan dusk:chrome-driver
ChromeDriver binary successfully installed for version 116.0.5845.96.

But when I launch

php artisan test:dusk quivi.customers --browse

I receive:

1) *****\******\tests\browser\NavigationTest::testAuthentication
Facebook\WebDriver\Exception\Internal\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--window-size=1920,1080"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","goog:chromeOptions":{"args":["--window-size=1920,1080"]}}}

Failed to connect to localhost port 9515: Connection refused

Any suggestion?

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.