Interface: ScrollActions
Defined in: packages/core/src/interactor/Interactor.ts:277
Viewport/scroll interactions. A capability facet of Interactor (ADR-007). jsdom has no layout engine, so these are no-ops there and behavioral assertions about the resulting scroll state are E2E-only (see each member).
Extended by​
Methods​
scrollBy()​
scrollBy(
locator,delta):Promise<void>
Defined in: packages/core/src/interactor/Interactor.ts:301
Scroll the desired element by the given delta (in pixels).
jsdom has no layout engine, so the scrolling effect is a no-op there: the element's scroll offset never changes. Behavioral assertions about the resulting scroll position are therefore E2E-only; the jsdom path only guarantees the call resolves without throwing once the element is found.
Parameters​
locator​
Locator of the scrollable element
delta​
Pixel offset to scroll by, where x is horizontal and y is vertical
Returns​
Promise<void>
scrollIntoView()​
scrollIntoView(
locator):Promise<void>
Defined in: packages/core/src/interactor/Interactor.ts:288
Scroll the desired element into the viewport.
jsdom has no layout engine, so the scrolling effect is a no-op there: the element's geometry never changes and nothing becomes "visible". Behavioral assertions about visibility or offset are therefore E2E-only; the jsdom path only guarantees the call resolves without throwing once the element is found.
Parameters​
locator​
Locator of the element to scroll into view
Returns​
Promise<void>