How to create multiple browsers using laravel dusk?

Run below srtisan command to generate the test class file

php artisan dusk:make MultipleBrowserTest
browse(function ($first, $second) {
             ->type('message', 'Hey Taylor')                                
     $first->waitForText('Hey Taylor')                              
            ->assertSee('Jeffrey Way'); 

Now you can run this test with below artisan command

php artisan dusk

If you get error – Error: Call to undefined function Tests\Browser\factory()
the run below command to include the legacy factory

composer require laravel/legacy-factories