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
composer require laravel/dusk error
I am trying to install Laravel/Dusk on a laravel 5.4 application.
The command that I am running is, according to the documentation: https://laravel.com/docs/5.4/dusk
composer require laravel/dusk
The output in terminal:
Using version ^1.0 for…

Angelin Calu
- 1,905
- 8
- 24
- 44
0
votes
0 answers
Getting Table/View Exists error when running laravel dusk tests
I have setup homestead environment for laravel. I am using the latest version of laravel(5.4). Whenever i run the command php artisan dusk, i get the following error:
1)…

Pawan Kumar
- 594
- 4
- 18
0
votes
1 answer
Installing Laravel Dusk on 5.3
We've got a project running on laravel 5.3 - we're going to be updating it to 5.4 once the vendor packages are all updated.
However we're currently getting the following when running composer require laravel/dusk and wondering if there is anybody…

owenmelbz
- 6,180
- 16
- 63
- 113
-1
votes
1 answer
Failed to connect to localhost port 9515 after 0 ms: Connection refused
I work on Manjaro, if is import. So I install dusk and chrome-driver from docs:
sail composer require --dev laravel/dusk
sail artisan dusk:install
sail artisan dusk:chrome-driver
Of course I have Chrome browser (currently Chromium too). I tryed…

wtsuport
- 315
- 1
- 3
- 9
-1
votes
1 answer
clickAtXPath not working in laravel(5.8) Dusk
Dusk Error
Dusk is throwing this error while using clickAtXPath
BadMethodCallException: Call to undefined method [clickAtXPath].
-1
votes
1 answer
Browser opens up blank and Laravel Dusk does not continue with tests on Ubuntu with Laravel Valet
Dusk Version: 6.17
Laravel Version: 8.5
PHP Version: 7.4.3
Database Driver & Version:mysql 8.0.26
Description:
I am running laravel on Ubuntu along with laravel valet. My local domain is http://www.amlsuite24.test.
I have installed Laravel Dusk with…

George
- 89
- 2
- 9
-1
votes
2 answers
Assert status in Laravel Dusk
I have a test which verify status. It should be 200
When I run this
public function testBasicTest()
{
$response = $this->json('GET', '/');
$response->assertStatus(200);
}
It pass but when I add url: /clients
always status 404
public…

Volodymyr Matsega
- 11
- 3
-1
votes
3 answers
How can my command pass through optional arguments to another Artisan command?
(Updated question to show that it's not like the linked questions)
I wrote a Laravel command (shown in its entirety below) that basically is a wrapper for Dusk so that I can be sure to call certain other functions beforehand. (Otherwise, I…

Ryan
- 22,332
- 31
- 176
- 357
-1
votes
1 answer
How to write a good test unit/functional test for such a case
This thread is more about the idea, not giving ready code.
I'm currently making Dusk (Selenium implemented in Laravel) tests for an application. I have functionality which is returning:
Search users which like color blue.
It's of course a bit more…

KKK
- 61
- 1
- 8
-1
votes
1 answer
Laravel Dusk merges in the default environment file
I just encountered the following scenario...
Imagine you use a MySQL database for your browser but would prefer a SQLite database for your testing with Dusk. I think that's quite a common case, or could be. So you might do something like this:
in…

Barnabas Kecskes
- 1,861
- 17
- 24
-3
votes
1 answer
Are browser tests needed?
Why would someone need to do browser tests ( using tools like Laravel dusk ),
when they already doing "Feature tests" and "Unit tests"?
Is browser tests needed for the app? and why?

rook99
- 1,034
- 10
- 34