Skip to content

Commit

Permalink
Fixing Javadoc around moveToElement, to specify its action as relativ…
Browse files Browse the repository at this point in the history
…e to center, not top-left corner

Signed-off-by: Diego Molina <diemol@gmail.com>
  • Loading branch information
mmerrell authored and diemol committed Aug 18, 2019
1 parent 7c0c147 commit 43963b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/client/src/org/openqa/selenium/interactions/Actions.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,12 @@ public Actions moveToElement(WebElement target) {
}

/**
* Moves the mouse to an offset from the top-left corner of the element.
* Moves the mouse to an offset from the center of the element.
* The element is scrolled into view and its location is calculated using getBoundingClientRect.
* @param target element to move to.
* @param xOffset Offset from the top-left corner. A negative value means coordinates left from
* @param xOffset Offset from the center. A negative value means coordinates left from
* the element.
* @param yOffset Offset from the top-left corner. A negative value means coordinates above
* @param yOffset Offset from the center. A negative value means coordinates above
* the element.
* @return A self reference.
*/
Expand Down

0 comments on commit 43963b8

Please sign in to comment.