Skip to content

Commit

Permalink
formatting and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 9, 2017
1 parent d26166d commit 414ac66
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
- [Running Tests](#running-tests)
- [Environment Handling](#environment-handling)
- [Creating Browsers](#creating-browsers)
- [Resizing Browser Windows](#resizing-browser-windows)
- [Authentication](#authentication)
- [Interacting With Elements](#interacting-with-elements)
- [Dusk Selectors](#dusk-selectors)
Expand Down Expand Up @@ -212,15 +211,14 @@ Sometimes you may need multiple browsers in order to properly carry out a test.
->assertSee('Jeffrey Way');
});

<a href="resizing-browser-windows"></a>
### Resizing Browser Windows
#### Resizing Browser Windows

To force dusk to run tests in a certain browser window size, call the browser `resize` method:
You may use the `resize` method to adjust the size of the browser window:

$browser->resize(1920, 1080);

If you wish to run tests with the browser window maximized, call the `maximize` method:
The `maximize` method may be used to maximize the browser window:

$browser->maximize();

<a name="authentication"></a>
Expand Down

0 comments on commit 414ac66

Please sign in to comment.