Coder Social home page Coder Social logo

Comments (18)

Sieabah avatar Sieabah commented on August 27, 2024 2

Also from within a vagrant box running debian I get what looks like a shell script,

`
vagrant@debian:/srv/web$ php artisan dusk

dir=$(d=${0%[/\\]*}; cd "$d"; cd '../phpunit/phpunit' && pwd)

# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
        # Cygwin paths start with /cygdrive/ which will break windows PHP,
        # so we need to translate the dir path to windows format. However
        # we could be using cygwin PHP which does not require this, so we
        # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
        if [[ $(which php) == /cygdrive/* ]]; then
                dir=$(cygpath -m "$dir");
        fi
fi

dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/phpunit" "$@"

`

from dusk.

vuon9 avatar vuon9 commented on August 27, 2024 2

@mnabialek Nice! Thank you so much. It's work.

@Sieabah Try dev-master branch in the composer. In vagrant, you need to change localhost to 10.0.2.2 in DuskTestCase.php (function driver). Hope it will help you.

from dusk.

BioTurboNick avatar BioTurboNick commented on August 27, 2024 2

This appears to still be an issue.

from dusk.

mnabialek avatar mnabialek commented on August 27, 2024 1

@Sieabah @vuongggggg Try dev-master branch for this (PR with fix was already merged)

from dusk.

deleugpn avatar deleugpn commented on August 27, 2024 1

Can this be closed?

from dusk.

Sieabah avatar Sieabah commented on August 27, 2024

It does work on Mac though, but doesn't work when it's running in vagrant.

from dusk.

vuon9 avatar vuon9 commented on August 27, 2024

It cannot work in vagrant box (based on Windows 10) too. I've got the same error with @Sieabah.

from dusk.

mrCartmenez avatar mrCartmenez commented on August 27, 2024

I had the same problem and this thread solved it for me. Thanks!

My pc runs Windows 10, with the Homestead Vagrant box.
With dusk on dev-master, I tried to connect to 10.0.2.2 and that works, provided ChromeDriver is running in Windows and the correct APP_URL is in the .env file.

from dusk.

denisrpriebe avatar denisrpriebe commented on August 27, 2024

I got Dusk working with the solutions mentioned above on Windows 7 and Homestead Vagrant. It does however take upwards of 20+ seconds to execute the default tests included. Does anyone know how to speed this up?

from dusk.

Sieabah avatar Sieabah commented on August 27, 2024

I'll get to testing this tomorrow.

from dusk.

nonDeath avatar nonDeath commented on August 27, 2024

I try with dev-master and don't work for me, still getting connection refused

from dusk.

deleugpn avatar deleugpn commented on August 27, 2024

@nonDeath Are you running Cent OS? Ubuntu? Windows? Don't run with root user. Check out #98 and #71

from dusk.

nonDeath avatar nonDeath commented on August 27, 2024

I running over ubuntu, apache2 and php7. But i see that issues and ... I do not want to blow away.

Trying execute the code inside SupportsChrome trait on tinker and i get null when start the process. May be smoething is wrong (permissions, locations etc etc)

from dusk.

nonDeath avatar nonDeath commented on August 27, 2024

@deleugpn i work around on this work with phantomjs.

And ... in the past year i work with the facebok web driver but with selenium and it work fine!

from dusk.

nonDeath avatar nonDeath commented on August 27, 2024

@deleugpn it's work!

Using phantomjs, but running it on another terminal.

$ phantomjs --webdriver=172.0.0.1:9515

and then

$ php artisan dusk

And it works fine. But, and it is a great but....

After this work for me, phantomjs thrown an error and I look for this githubgist https://gist.github.com/flamingbear/10506888

And the port 9515 (DuskTestCase default port) ever is taken by the crhomedriver, i don't know why...

But killing its process, its works, unfortunately i'm killing it after each dusk running... not all was a great solution, but it work for me.

Changing the port for another unused, by example 4444... i get green in each test running.

This workaround i take from a friend and looking in this work https://twitter.com/laravelphp/status/826534379551936514

from dusk.

pr4xx avatar pr4xx commented on August 27, 2024

I got the same problem and found out what the problem on my side was: I had (running Win7) two local environment variables installed:
http_proxy and https_proxy pointing to 127.0.0.1:3128. I need them for composer and the corporate proxy. After removing it (temporarely), it works.

from dusk.

jvillaruel avatar jvillaruel commented on August 27, 2024

how to start chromedriver manually on linux?

from dusk.

driesvints avatar driesvints commented on August 27, 2024

Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.

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.