Skip to content

Commit f5c90cc

Browse files
committed
Merge branch '7.x' of https://github.com/u01jmg3/docs into u01jmg3-7.x
2 parents 3fd7735 + b1511c7 commit f5c90cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dusk.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- [Scoping Selectors](#scoping-selectors)
2525
- [Waiting For Elements](#waiting-for-elements)
2626
- [Making Vue Assertions](#making-vue-assertions)
27+
- [Scrolling An Element Into View](#scrolling-into-view)
2728
- [Available Assertions](#available-assertions)
2829
- [Pages](#pages)
2930
- [Generating Pages](#generating-pages)
@@ -660,6 +661,14 @@ You may assert on the state of the Vue component like so:
660661
});
661662
}
662663

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+
663672
<a name="available-assertions"></a>
664673
## Available Assertions
665674

0 commit comments

Comments
 (0)