Skip to content

Commit d6cd485

Browse files
authored
add documentation on the fitContent method
goes with laravel/dusk#655 going to start looking into being able to configure it to auto fit before taking screenshots of failures.
1 parent 9e8c49b commit d6cd485

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dusk.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ The `maximize` method may be used to maximize the browser window:
248248

249249
$browser->maximize();
250250

251+
The `fitContent` method will resize the browser window to match the size of the content:
252+
253+
$browser->fitContent();
254+
251255
<a name="browser-macros"></a>
252256
### Browser Macros
253257

0 commit comments

Comments
 (0)