Laravel - Browser Tests - Taking A Screenshot

You may use the screenshot method to take a screenshot and store it with the given filename. All screenshots will be stored within the tests/Browser/screenshots directory:

    
    $browser->screenshot('filename');