Skip to content
masterclass Buddy

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.

Subscribe
  • cy.scrollTo()
  • cy.pause()
  • cy.get()
  • should()

Source: cy.scrollIntoView() | Cypress API Documentation. Checked 2026-11-03.