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

Function moveTo

javascript/atoms/action.js:409–415  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

407 mouse.releaseButton();
408
409 function moveTo(x, y) {
410 var currRect = bot.dom.getClientRect(element);
411 var newPos = new goog.math.Coordinate(
412 coords.x + initRect.left + x - currRect.left,
413 coords.y + initRect.top + y - currRect.top);
414 mouse.move(element, newPos);
415 }
416};
417
418

Callers 1

action.jsFile · 0.85

Calls 1

moveMethod · 0.45

Tested by

no test coverage detected