Laravel Dusk provides an expressive, easy-to-use browser automation and testing API. By default, Dusk does not require you to install JDK or Selenium on your machine. Instead, Dusk uses a standalone ChromeDriver installation. However, you are free to utilize any other Selenium compatible driver you wish.
Questions tagged [laravel-dusk]
477 questions
0
votes
1 answer
Distribute Laravel Dusk Tests to Selenium Grid
I have a Laravel Project (5.4) with about 8 Dusk Test files. I also have a Selenium Grid running with 8 Chrome Nodes.
I want to send one Laravel Dusk Test file to each Chrome Node. Is there an easy way to do so? or is it even feasible? I have a way…

McCleery
- 56
- 1
- 7
0
votes
0 answers
How to drag and drop a google maps marker?
I'm trying to write end-to-end browser tests using webdriver (Laravel Dusk) for a case using drag and drop of a google maps marker.
The documentation is straight forward about doing this given a CSS selector to the marker icon, but I can't figure…

Jeff Puckett
- 37,464
- 17
- 118
- 167
0
votes
1 answer
why is my laravel dusk test failing on undefined variable?
I have the following test...

dstewart101
- 1,084
- 1
- 16
- 38
0
votes
0 answers
Php artisan dusk does not show the result in red or green colour
Using Laravel 5.4 and installed Dusk(1.7) and phpunit(5.7)
The result has no color indications, like normally its Red or Green Color

Gurubille Srinivas Reddy
- 7
- 1
- 1
- 5
0
votes
1 answer
I can't input date in from on my web test using Laravel Dusk
I attempt write code for test input date on form. My from use input date form w3s.
public function testAddCustomer()
{
$this->browse(function (browser $browser) {
$browser->clickLink('เพิ่มลูกค้า')
->pause(500)
…
0
votes
1 answer
Laravel 5.4 Browser testing, cannot type into input fields: X display is required
I am following the Laravel Documentation (https://laravel.com/docs/5.4/dusk) to create browser tests for my application.
After some trials, I got Dusk to run. It runs only when --headless mode is used -- otherwise, PHP unit hangs without any…

hktang
- 1,745
- 21
- 35
0
votes
2 answers
Difference between feature and browser tests
I was at the point where I felt familiar with feature and unit tests in Laravel. But recently I created a new project and discovered Laravel Dusk. After its installation there now also is a Browser directory where I can put my tests in. But now I'm…

Ben Fransen
- 10,884
- 18
- 76
- 129
0
votes
1 answer
Problems when run Dusk Laravel 5.4 Ubuntu
I followed the tutorial from https://laravel.com/docs/5.4/dusk but when I run php artisan dusk
Freeze on it and not execute nothing more, also not open any browser. Someone have some Idea why ?
Bellow you can see my AppServiceProvider:
Then if…

Claudio Djohnnatha
- 191
- 1
- 12
0
votes
1 answer
facade always passing test never matter what return I expect
SkillAssessment::shouldReceive('addTwoNumbersAndAddName')
->with(3,5,'john')
->andReturn('thisstring is random and always passes anyway1341234123412343')->once();
A very basic mockup, expected return is:
8 john
so what I wanted to write…

Toskan
- 13,911
- 14
- 95
- 185
0
votes
0 answers
Laravel Dusk Internal Script Failure
I am having problems with Laravel Dusk in my application. I created a new Laravel 5.4 project inside of a Vagrant Box and I installed Dusk according to the directions in the official documentation (https://laravel.com/docs/5.4/dusk). When I run…

CopaceticCoffee
- 25
- 7
0
votes
1 answer
Is dusk is mandatory to write phpunit test cases?how to write phpunit test cases in laravel 5.4?
I am newbie to laravel. I am using laravel 5.4 version, we have requirement of writing phpunit test cases for our application, So I have searched for writing phpunit testcases and also read the documentation in laravel website. I read about the…

Prasad Patel
- 707
- 3
- 16
- 53
0
votes
0 answers
How to run Dusk test form URL in Laravel 5.4
I tried to run Dusk from an URL:
Route::get('/test', function()
{
$_SERVER['argv'] = [];
Artisan::call('dusk');
});
And I did as suggested in this comment and still cannot run the test from URL.

santosh sharma
- 1
- 1
0
votes
1 answer
Laravel dusk error on js submit failed to load resource: err_file_not_found
I have an error on
php artisan dusk
error on cosole said
Failed to load resouces: net::ERR_FILE_NOT_FOUND
Manually run the test on browser the no such error found.
The routes is correct and tested. The js is working.
I use…

starplateena
- 95
- 7
0
votes
1 answer
Laravel Dusk on Centos: Failed connect to localhost:9515; Connection refused
OK, today is the day. I finally started (again) to use TDD.
I notice that this thing called Dusk has appeared. Great, browser testing.
The only problem is that I get this:
Failed connect to localhost:9515; Connection refused
I did chmod 777 on the…

Mick
- 1,401
- 4
- 23
- 40
0
votes
1 answer
Laravel dusk not working
I created a application using laravel 5.4
Settings from my default .env…

Lucas Lopes
- 1,373
- 3
- 14
- 23