Skip to content

Commit 4747f5f

Browse files
committed
formatting
1 parent f5c90cc commit 4747f5f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dusk.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
- [JavaScript Dialogs](#javascript-dialogs)
2424
- [Scoping Selectors](#scoping-selectors)
2525
- [Waiting For Elements](#waiting-for-elements)
26+
- [Scrolling An Element Into View](#scrolling-an-element-into-view)
2627
- [Making Vue Assertions](#making-vue-assertions)
27-
- [Scrolling An Element Into View](#scrolling-into-view)
2828
- [Available Assertions](#available-assertions)
2929
- [Pages](#pages)
3030
- [Generating Pages](#generating-pages)
@@ -623,6 +623,14 @@ Many of the "wait" methods in Dusk rely on the underlying `waitUsing` method. Yo
623623
return $something->isReady();
624624
}, "Something wasn't ready in time.");
625625

626+
<a name="scrolling-an-element-into-view"></a>
627+
### Scrolling An Element Into View
628+
629+
Sometimes you may not be able to click on an element because it is outside of the viewable area of the browser. The `scrollIntoView` method will scroll the browser window until the element at the given selector is within the view:
630+
631+
$browser->scrollIntoView('selector')
632+
->click('selector');
633+
626634
<a name="making-vue-assertions"></a>
627635
### Making Vue Assertions
628636

@@ -661,14 +669,6 @@ You may assert on the state of the Vue component like so:
661669
});
662670
}
663671

664-
<a name="scrolling-into-view"></a>
665-
### Scrolling An Element Into View
666-
667-
The `scrollIntoView` method will scroll an element into view at the given selector. This is useful to call prior to interacting with an element that is not currently in view.
668-
669-
$browser->scrollIntoView('selector')
670-
->click('selector');
671-
672672
<a name="available-assertions"></a>
673673
## Available Assertions
674674

0 commit comments

Comments
 (0)