Cypress · Method
cy.scrollIntoView
cy.scrollIntoView() scrolls a selected DOM element into view. Use its options object to control animation, offsets, logging, and timeout.
Last updated
Syntax
.scrollIntoView()
.scrollIntoView(options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cy.scrollTo()cy.pause()cy.get()should()