Command for scrolling into the page #313
Closed
Labels
Milestone
Comments
Although we could probably create a more robust solution for this, you can already easily achieve this using native DOM API's. There is already a cy.get("button").then(function($btn){
$btn.get(0).scrollIntoView()
}) We'll keep this issue open because it's come up before and we likely should just add our own cypress command which gives you more options about how the element is scrolled into view. |
This was referenced May 15, 2017
Closed
@brian-mann should it work with |
The code for this is done, but this has yet to be released. We'll update the issue and reference the changelog when it's released. |
Fixed in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, thanks for cypress, it's a great tool.
For the moment I use the trick that when click on an element, the page will scroll. Not really the more natural thing. Is it possible to get something like cypress.scrollTo?
It could be very useful to test parallax and other UX features
The text was updated successfully, but these errors were encountered: