webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
37 lines • 930 B
TypeScript
import type { BaseActionParams } from './base.js';
import BaseAction from './base.js';
import type { ChainablePromiseElement } from '../../types.js';
export interface ScrollParams {
/**
* starting x coordinate
*/
x: number;
/**
* starting y coordinate
*/
y: number;
/**
* Delta X to scroll to target
*/
deltaX: number;
/**
* Delta Y to scroll to target
*/
deltaY: number;
/**
* element origin
*/
origin?: WebdriverIO.Element | ChainablePromiseElement;
/**
* duration ratio be the ratio of time delta and duration
*/
duration: number;
}
export default class WheelAction extends BaseAction {
constructor(instance: WebdriverIO.Browser, params?: BaseActionParams);
/**
* Scrolls a page to given coordinates or origin.
*/
scroll(params?: Partial<ScrollParams>): this;
}
//# sourceMappingURL=wheel.d.ts.map