Methods
scroll(x, y, deltaX, deltaY, origin, duration) → (non-null) {Action}
Scrolls a page via the coordinates given
Parameters:
Name | Type | Description |
---|---|---|
x | number | starting x coordinate |
y | number | starting y coordinate |
deltaX | number | Delta X to scroll to target |
deltaY | number | Delta Y to scroll to target |
origin | WebElement | element origin |
duration | number | duration ratio be the ratio of time delta and duration |
- Source
Returns:
An action to scroll with this device.
- Type:
- Action