File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 8
8
- [ Running Tests] ( #running-tests )
9
9
- [ Environment Handling] ( #environment-handling )
10
10
- [ Creating Browsers] ( #creating-browsers )
11
+ - [ Resizing Browser Windows] ( #resizing-browser-windows )
11
12
- [ Authentication] ( #authentication )
12
13
- [ Interacting With Elements] ( #interacting-with-elements )
13
14
- [ Dusk Selectors] ( #dusk-selectors )
@@ -211,6 +212,17 @@ Sometimes you may need multiple browsers in order to properly carry out a test.
211
212
->assertSee('Jeffrey Way');
212
213
});
213
214
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
+
214
226
<a name =" authentication " ></a >
215
227
### Authentication
216
228
You can’t perform that action at this time.
0 commit comments