UNPKG

e2ed

Version:

E2E testing framework over Playwright

9 lines (8 loc) 562 B
import { Selector } from '../utils/selectors'; type Scroll = ((posX: number, posY: number) => Promise<void>) & ((position: ScrollPosition) => Promise<void>) & ((selector: Selector, scrollLeft: number, scrollTop: number) => Promise<void>) & ((selector: Selector, position: ScrollPosition) => Promise<void>); type ScrollPosition = 'bottom' | 'bottomLeft' | 'bottomRight' | 'center' | 'left' | 'right' | 'top' | 'topLeft' | 'topRight'; /** * Scrolls the document (or element) to the specified absolute position. */ export declare const scroll: Scroll; export {};