Actions |
Actions.click() |
Clicks at the current mouse location.
|
Actions |
Actions.click(WebElement target) |
Clicks in the middle of the given element.
|
Actions |
Actions.clickAndHold() |
Clicks (without releasing) at the current mouse location.
|
Actions |
Actions.clickAndHold(WebElement target) |
Clicks (without releasing) in the middle of the given element.
|
Actions |
Actions.contextClick() |
Performs a context-click at the current mouse location.
|
Actions |
Actions.contextClick(WebElement target) |
Performs a context-click at middle of the given element.
|
Actions |
Actions.doubleClick() |
Performs a double-click at the current mouse location.
|
Actions |
Actions.doubleClick(WebElement target) |
Performs a double-click at middle of the given element.
|
Actions |
Actions.dragAndDrop(WebElement source,
WebElement target) |
A convenience method that performs click-and-hold at the location of the source element, moves
to the location of the target element, then releases the mouse.
|
Actions |
Actions.dragAndDropBy(WebElement source,
int xOffset,
int yOffset) |
A convenience method that performs click-and-hold at the location of the source element, moves
by a given offset, then releases the mouse.
|
Actions |
Actions.keyDown(java.lang.CharSequence key) |
Performs a modifier key press.
|
Actions |
Actions.keyDown(WebElement target,
java.lang.CharSequence key) |
Performs a modifier key press after focusing on an element.
|
Actions |
Actions.keyUp(java.lang.CharSequence key) |
Performs a modifier key release.
|
Actions |
Actions.keyUp(WebElement target,
java.lang.CharSequence key) |
Performs a modifier key release after focusing on an element.
|
Actions |
Actions.moveByOffset(int xOffset,
int yOffset) |
Moves the mouse from its current position (or 0,0) by the given offset.
|
Actions |
Actions.moveToElement(WebElement target) |
Moves the mouse to the middle of the element.
|
Actions |
Actions.moveToElement(WebElement target,
int xOffset,
int yOffset) |
Moves the mouse to an offset from the element's in-view center point.
|
Actions |
Actions.moveToLocation(int xCoordinate,
int yCoordinate) |
Moves the mouse to provided coordinates on screen regardless of starting position of the mouse.
|
Actions |
Actions.pause(long pause) |
Performs a pause.
|
Actions |
Actions.pause(java.time.Duration duration) |
|
Actions |
Actions.release() |
Releases the depressed left mouse button at the current mouse location.
|
Actions |
Actions.release(WebElement target) |
Releases the depressed left mouse button, in the middle of the given element.
|
Actions |
Actions.scrollByAmount(int deltaX,
int deltaY) |
Scrolls by provided amounts with the origin in the top left corner of the viewport.
|
Actions |
Actions.scrollFromOrigin(WheelInput.ScrollOrigin scrollOrigin,
int deltaX,
int deltaY) |
Scrolls by provided amount based on a provided origin.
|
Actions |
Actions.scrollToElement(WebElement element) |
If the element is outside the viewport, scrolls the bottom of the element to the bottom of the
viewport.
|
Actions |
Actions.sendKeys(java.lang.CharSequence... keys) |
Sends keys to the active element.
|
Actions |
Actions.sendKeys(WebElement target,
java.lang.CharSequence... keys) |
|
Actions |
Actions.setActiveKeyboard(java.lang.String name) |
|
Actions |
Actions.setActivePointer(PointerInput.Kind kind,
java.lang.String name) |
|
Actions |
Actions.setActiveWheel(java.lang.String name) |
|
Actions |
Actions.tick(Interaction... actions) |
|