MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / scroll

Method scroll

javascript/selenium-webdriver/lib/input.js:850–852  ·  view source on GitHub ↗

* 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 {number} duration duration ratio be the rat

(x, y, targetDeltaX, targetDeltaY, origin, duration)

Source from the content-addressed store, hash-verified

848 * @returns {!Actions} An action to scroll with this device.
849 */
850 scroll(x, y, targetDeltaX, targetDeltaY, origin, duration) {
851 return this.insert(this.wheel_, this.wheel_.scroll(x, y, targetDeltaX, targetDeltaY, origin, duration))
852 }
853
854 /**
855 * Inserts an action for moving the mouse `x` and `y` pixels relative to the

Callers

nothing calls this directly

Calls 2

insertMethod · 0.95
scrollMethod · 0.45

Tested by

no test coverage detected