Skip to content

Commit d26166d

Browse files
committed
Add browser resizing to Dusk documentation.
1 parent a50cdf8 commit d26166d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dusk.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Running Tests](#running-tests)
99
- [Environment Handling](#environment-handling)
1010
- [Creating Browsers](#creating-browsers)
11+
- [Resizing Browser Windows](#resizing-browser-windows)
1112
- [Authentication](#authentication)
1213
- [Interacting With Elements](#interacting-with-elements)
1314
- [Dusk Selectors](#dusk-selectors)
@@ -211,6 +212,17 @@ Sometimes you may need multiple browsers in order to properly carry out a test.
211212
->assertSee('Jeffrey Way');
212213
});
213214

215+
<a href="resizing-browser-windows"></a>
216+
### Resizing Browser Windows
217+
218+
To force dusk to run tests in a certain browser window size, call the browser `resize` method:
219+
220+
$browser->resize(1920, 1080);
221+
222+
If you wish to run tests with the browser window maximized, call the `maximize` method:
223+
224+
$browser->maximize();
225+
214226
<a name="authentication"></a>
215227
### Authentication
216228

0 commit comments

Comments
 (0)