Skip to content

Commit 43963b8

Browse files
mmerrelldiemol
authored andcommitted
Fixing Javadoc around moveToElement, to specify its action as relative to center, not top-left corner
Signed-off-by: Diego Molina <[email protected]>
1 parent 7c0c147 commit 43963b8

File tree

1 file changed

+3
-3
lines changed
  • java/client/src/org/openqa/selenium/interactions

1 file changed

+3
-3
lines changed

java/client/src/org/openqa/selenium/interactions/Actions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ public Actions moveToElement(WebElement target) {
364364
}
365365

366366
/**
367-
* Moves the mouse to an offset from the top-left corner of the element.
367+
* Moves the mouse to an offset from the center of the element.
368368
* The element is scrolled into view and its location is calculated using getBoundingClientRect.
369369
* @param target element to move to.
370-
* @param xOffset Offset from the top-left corner. A negative value means coordinates left from
370+
* @param xOffset Offset from the center. A negative value means coordinates left from
371371
* the element.
372-
* @param yOffset Offset from the top-left corner. A negative value means coordinates above
372+
* @param yOffset Offset from the center. A negative value means coordinates above
373373
* the element.
374374
* @return A self reference.
375375
*/

0 commit comments

Comments
 (0)