Is this something that a library like guzzle couldn't already handle? Using dusk to check a value on a page seems a bit overkill.
Jun 8, 2017
13
Level 2
Is it possible to use Laravel Dusk browser outside of testing?
Hi,
I have been using Laravel Dusk for basic testing, and it has been great. I now have a case where it would be helpful to be able to use the Dusk browser in my main application code. Basically I want to be able to hit a route, check a value, etc using the nice Dusk syntax.
Right now it seems very coupled with testing. Has anyone been able to, or think they know a way to use the browser as a normal part of the application? (i.e. within a console command?)
Thanks in advance!
Level 2
https://packagist.org/packages/travoltron/dusk-secure
I've gone ahead and ripped out all the route exposing user stuff to make a more viable Dusk-based scraper for us all.
6 likes
Please or to participate in this conversation.