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 center of the element.
|
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.sendKeys(java.lang.CharSequence... keys) |
Sends keys to the active element.
|
Actions |
Actions.sendKeys(WebElement target,
java.lang.CharSequence... keys) |
|
Actions |
Actions.tick(Action action) |
|
Actions |
Actions.tick(Interaction... actions) |
|