MCPcopy Create free account
hub / github.com/angular/components / scrollPage

Function scrollPage

src/cdk/overlay/scroll/block-scroll-strategy.e2e.spec.ts:120–122  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

118
119 // Scrolls the page to the specified coordinates.
120 async function scrollPage(x: number, y: number) {
121 await wd.executeScript(`window.scrollTo(${x}, ${y});`);
122 }
123
124 /**
125 * Determines the current scroll position of the page.

Calls

no outgoing calls

Tested by

no test coverage detected