Comments (18)
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.
@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.
This appears to still be an issue.
from dusk.
@Sieabah @vuongggggg Try dev-master branch for this (PR with fix was already merged)
from dusk.
Can this be closed?
from dusk.
It does work on Mac though, but doesn't work when it's running in vagrant.
from dusk.
It cannot work in vagrant box (based on Windows 10) too. I've got the same error with @Sieabah.
from dusk.
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.
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.
I'll get to testing this tomorrow.
from dusk.
I try with dev-master and don't work for me, still getting connection refused
from dusk.
@nonDeath Are you running Cent OS? Ubuntu? Windows? Don't run with root user. Check out #98 and #71
from dusk.
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.
@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.
@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.
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.
how to start chromedriver manually on linux?
from dusk.
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)
- [7.9.1] unknown error: cannot find Chrome binary HOT 5
- `--stop-on-failure` option no longer seems to work HOT 1
- Driver won't download with Telescope enabled HOT 8
- unknown error: cannot find Chrome binary HOT 1
- Error This version of ChromeDriver only supports Chrome version 114 Current browser version is 118.0.5975.0 HOT 1
- Assertion failure can lead to timeout if using multiple browsers HOT 5
- Test class with no tests gives non-zero stderr status, but no warning to stdout and shows all tests pass HOT 5
- Unexpected behaviour when working with multiple checkboxes HOT 1
- waitForTextIn() broken in dusk 7.11.2 HOT 2
- Unknown option "--ansi" and "--no-ansi"
- Laravel Dusk doesn't trigger on @input when attached to <select> only on @change when using Vue HOT 2
- When running `php artisan dusk` the tests do not complete. They just hang. - MacOS Sonoma 14.2.1, Chip: M3 Pro HOT 9
- Throwing an exception in a dusk test inside the browser callback results in timeouts HOT 2
- vueAttribute does not work with Vue 3 and vite build. only with vite dev. HOT 6
- Failed to load assets in Sail HOT 4
- Dusk slows down after call to dump() HOT 1
- Unknown options --verbose / -v / --quiet / -q HOT 3
- The driver fails to read the environment properly HOT 3
- Chromedriver 127 renames wrong file on install HOT 2
- Dusk @-selectors cannot be combined with other CSS selectors for the same element HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dusk.