* Scrolls a page via the coordinates given * @param {number} x starting x coordinate * @param {number} y starting y coordinate * @param {number} deltaX Delta X to scroll to target * @param {number} deltaY Delta Y to scroll to target * @param {WebElement} origin element origin * @pa
(x, y, deltaX, deltaY, origin, duration)
| 471 | * @returns {!Action} An action to scroll with this device. |
| 472 | */ |
| 473 | scroll(x, y, deltaX, deltaY, origin, duration) { |
| 474 | return { |
| 475 | type: Action.Type.SCROLL, |
| 476 | duration: duration, |
| 477 | x: x, |
| 478 | y: y, |
| 479 | deltaX: deltaX, |
| 480 | deltaY: deltaY, |
| 481 | origin: origin, |
| 482 | } |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | /** |
no outgoing calls
no test coverage detected