DEV Community

Discussion on: 5 useful tricks for Laravel Dusk

Collapse
 
mlab817 profile image
Mark Lester Bolotaolo

For Item 4, it doesn't seem to work when there is no failure encountered. It would only take full page screenshot when there's an error. Any idea how to make it so that I can also take full page screenshots on success? Thanks.

Collapse
 
joseseabra profile image
Jose Seabra

ever since Laravel 6.x there's a fitContent() method you can use.

So just do $browser->fitContent()->screenshot('name');