Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 24, 2019
1 parent afd8a1c commit c6c634c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
- [Attaching Files](#attaching-files)
- [Using The Keyboard](#using-the-keyboard)
- [Using The Mouse](#using-the-mouse)
- [JavaScript Dialogs](#javascript-dialogs)
- [Scoping Selectors](#scoping-selectors)
- [JavaScript Dialogs](#dialogs)
- [Waiting For Elements](#waiting-for-elements)
- [Making Vue Assertions](#making-vue-assertions)
- [Available Assertions](#available-assertions)
Expand Down Expand Up @@ -456,6 +456,13 @@ Or, you may drag an element in a single direction:
$browser->dragUp('.selector', 10);
$browser->dragDown('.selector', 10);

<a name="javascript-dialogs"></a>
### JavaScript Dialogs

The `assertDialogOpened` method may be used to assert that a JavaScript dialog has been displayed and that its message matches the given value:

$browser->assertDialogOpened('value');

<a name="scoping-selectors"></a>
### Scoping Selectors

Expand All @@ -466,17 +473,6 @@ Sometimes you may wish to perform several operations while scoping all of the op
->clickLink('Delete');
});

<a name="dialogs"></a>
### Dialogs

Sometimes you may wish to check or interact with JavaScript dialogs (`alert` and `confirm`)

#### Asserting a Dialog's value

The `assertDialogOpened` method may be used to assert that a JavaScript dialog has been displayed, and that its message matches the given value:

$browser->assertDialogOpened('value');

#### Closing a Dialog

To close an opened JavaScript Dialog, clicking the OK button:
Expand Down

0 comments on commit c6c634c

Please sign in to comment.