Reputation: 1328
I am playing around with Laravel sail and dusk for BDD. I have exactly followed Laravel sail documentation and I was able to run the tests in headless or headfull mode inside the sail container. But I want to see the test running by opening the browser. It would be easy if I was not using sail. Since I am using it, I am being unable to do so. Any instruction to achieve this ? Thanks in advance
Upvotes: 0
Views: 833
Reputation: 2241
You can run the selenium standalone on your Windows Machine with Java installed.
Download the Selenium v4 here into local dir (e.g. D:\Selenium
)
Download the Chrome Driver here into local dir (e.g. D:\Selenium
)
Add the local dir (e.g. D:\Selenium
) in to PATH
Open cmd
and execute (replace your filename and your local host IP)
java -jar selenium-server-4.1.1.jar standalone --host 192.168.1.180
.env.dusk.local
,APP_URL=http://localhost
DUSK_HEADLESS_DISABLED=true
DUSK_DRIVER_URL=http://192.168.1.180:4444/wd/hub
so, you can run the Dusk with browser opening.
Upvotes: 2