Skip to content

Commit

Permalink
Merge branch '7.x' of https://github.com/u01jmg3/docs into u01jmg3-7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 23, 2020
2 parents 3fd7735 + b1511c7 commit f5c90cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- [Scoping Selectors](#scoping-selectors)
- [Waiting For Elements](#waiting-for-elements)
- [Making Vue Assertions](#making-vue-assertions)
- [Scrolling An Element Into View](#scrolling-into-view)
- [Available Assertions](#available-assertions)
- [Pages](#pages)
- [Generating Pages](#generating-pages)
Expand Down Expand Up @@ -660,6 +661,14 @@ You may assert on the state of the Vue component like so:
});
}

<a name="scrolling-into-view"></a>
### Scrolling An Element Into View

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.

$browser->scrollIntoView('selector')
->click('selector');

<a name="available-assertions"></a>
## Available Assertions

Expand Down

0 comments on commit f5c90cc

Please sign in to comment.