Laravel Dusk Issue
- September 1, 2024
- Posted by: Permiesintelli
- Categories: IT Industry, Laravel-php
When we try to install dusk and run testing in local , we used to get below error, I am sharing here the fix for below issue (in windows -local)
Facebook\WebDriver\Remote\DesiredCapabilities::__construct(): Argument #1 ($capabilities) must be of type array, null given, called in C:\xampp\htdocs\timesheet-app\vendor\php-webdriver\webdriver\lib\Remote\RemoteWebDriver.php on line 664.
follow installation process from the laravel dusk website and after installation you need to go to the below folder
‘C:\xampp\htdocs\<your project>\vendor\laravel\dusk\bin
chromedriver-win.exe file , run this in you local.
then try to find the port number from command
Copy the port number and use the same number in
Then run your Dusk test cases , it should wok.
it worked for us. Let us know if you need help in this..