Java org.openqa.selenium.interactions Actions fields, constructors, methods, implement or subclass

Example usage for Java org.openqa.selenium.interactions Actions fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.openqa.selenium.interactions Actions.

The text is from its open source code.

Subclass

org.openqa.selenium.interactions.Actions has subclasses.
Click this link to see all its subclasses.

Constructor

Method

Actionbuild()
Generates a composite action containing all actions so far, ready to be performed (and resets the internal builder state, so subsequent calls to #build() will contain fresh sequences).
Actionsclick(WebElement target)
Clicks in the middle of the given element.
Actionsclick()
Clicks at the current mouse location.
ActionsclickAndHold(WebElement target)
Clicks (without releasing) in the middle of the given element.
ActionsclickAndHold()
Clicks (without releasing) at the current mouse location.
ActionscontextClick()
Performs a context-click at the current mouse location.
ActionscontextClick(WebElement target)
Performs a context-click at middle of the given element.
ActionsdoubleClick(WebElement target)
Performs a double-click at middle of the given element.
ActionsdoubleClick()
Performs a double-click at the current mouse location.
ActionsdragAndDrop(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.
ActionsdragAndDropBy(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.
ActionskeyDown(CharSequence key)
Performs a modifier key press.
ActionskeyDown(WebElement target, CharSequence key)
Performs a modifier key press after focusing on an element.
ActionskeyUp(CharSequence key)
Performs a modifier key release.
ActionskeyUp(WebElement target, CharSequence key)
Performs a modifier key release after focusing on an element.
ActionsmoveByOffset(int xOffset, int yOffset)
Moves the mouse from its current position (or 0,0) by the given offset.
ActionsmoveToElement(WebElement target)
Moves the mouse to the middle of the element.
ActionsmoveToElement(WebElement target, int xOffset, int yOffset)
Moves the mouse to an offset from the center of the element.
Actionspause(long pause)
Performs a pause.
Actionspause(Duration duration)
voidperform()
A convenience method for performing the actions without calling build() first.
Actionsrelease(WebElement target)
Releases the depressed left mouse button, in the middle of the given element.
Actionsrelease()
Releases the depressed left mouse button at the current mouse location.
ActionssendKeys(CharSequence... keys)
Sends keys to the active element.
ActionssendKeys(WebElement target, CharSequence... keys)
Equivalent to calling: Actions.click(element).sendKeys(keysToSend). This method is different from WebElement#sendKeys(CharSequence) - see #sendKeys(CharSequence) for details how.