Skip to content

Commit 6356ff2

Browse files
committed
[java] add javadocs to scroll()
1 parent d692f80 commit 6356ff2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ public Actions release(WebElement target) {
271271
return moveInTicks(target, 0, 0).tick(getActivePointer().createPointerUp(LEFT.asArg()));
272272
}
273273

274+
/**
275+
*
276+
* @param x The horizontal offset from the origin from which to start the scroll.
277+
* @param y The vertical offset from the origin from which to start the scroll.
278+
* @param deltaX The distance along X axis to scroll using the wheel. A negative value scrolls left.
279+
* @param deltaY The distance along Y axis to scroll using the wheel. A negative value scrolls up.
280+
* @param origin Where scroll originates, either the viewport or the center of an element.
281+
* @return A self reference.
282+
*/
274283
public Actions scroll( int x, int y, int deltaX, int deltaY, WheelInput.Origin origin) {
275284
return tick(getActiveWheel().createScroll(x, y, deltaX, deltaY, Duration.ofMillis(250), origin));
276285
}

0 commit comments

Comments
 (0)