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

Method move

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

* Inserts an action for moving the mouse `x` and `y` pixels relative to the * specified `origin`. The `origin` may be defined as the mouse's * plain ./input.Origin.POINTER current position, the top-left corner of the * plain ./input.Origin.VIEWPORT viewport, or the center of a

({ x = 0, y = 0, duration = 100, origin = Origin.VIEWPORT } = {})

Source from the content-addressed store, hash-verified

873 * @return {!Actions} a self reference.
874 */
875 move({ x = 0, y = 0, duration = 100, origin = Origin.VIEWPORT } = {}) {
876 return this.insert(this.mouse_, this.mouse_.move({ x, y, duration, origin }))
877 }
878
879 /**
880 * Short-hand for performing a simple left-click (down/up) with the mouse.

Callers 3

clickMethod · 0.95
contextClickMethod · 0.95
dragAndDropMethod · 0.95

Calls 2

insertMethod · 0.95
moveMethod · 0.45

Tested by

no test coverage detected