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

Method scroll

javascript/selenium-webdriver/lib/input.js:473–483  ·  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 {WebElement} origin element origin * @pa

(x, y, deltaX, deltaY, origin, duration)

Source from the content-addressed store, hash-verified

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/**

Callers 4

action.jsFile · 0.45
scrollMethod · 0.45
actions_test.jsFile · 0.45
input_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected