Package org.fluentlenium.core.action
Class MouseActions
- java.lang.Object
-
- org.fluentlenium.core.action.MouseActions
-
public class MouseActions extends java.lang.ObjectExecute actions with the mouse.
-
-
Constructor Summary
Constructors Constructor Description MouseActions(org.openqa.selenium.WebDriver driver)Creates a new mouse actions.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.openqa.selenium.interactions.Actionsactions()Get the actions object.org.openqa.selenium.interactions.Mousebasic()Deprecated.Use the following mapping for updating your code:MouseActionsclick()Clicks at the current mouse location.MouseActionsclickAndHold()Clicks (without releasing) at the current mouse location.MouseActionscontextClick()Performs a context-click at the current mouse location.MouseActionsdoubleClick()Performs a double-click at the current mouse location.MouseActionsrelease()Releases the depressed left mouse button at the current mouse location.
-
-
-
Method Detail
-
actions
protected org.openqa.selenium.interactions.Actions actions()
Get the actions object.- Returns:
- actions object
-
basic
@Deprecated public org.openqa.selenium.interactions.Mouse basic()
Deprecated.Use the following mapping for updating your code:Mouse.click(Coordinates)toMouseElementActions.click()Mouse.doubleClick(Coordinates)toMouseElementActions.doubleClick()Mouse.mouseDown(Coordinates)toMouseElementActions.moveToElement()thenMouseElementActions.clickAndHold()Mouse.mouseUp(Coordinates)toMouseElementActions.release()Mouse.mouseMove(Coordinates)toMouseElementActions.moveToElement()Mouse.mouseMove(Coordinates, long, long)toMouseElementActions.moveToElement(int, int)Mouse.contextClick(Coordinates)toMouseElementActions.contextClick()Basic mouse operations- Returns:
- low level interface to control the mouse
-
clickAndHold
public MouseActions clickAndHold()
Clicks (without releasing) at the current mouse location.- Returns:
- this object reference to chain calls
- See Also:
Actions.clickAndHold()
-
release
public MouseActions release()
Releases the depressed left mouse button at the current mouse location.- Returns:
- this object reference to chain calls
- See Also:
Actions.release()
-
click
public MouseActions click()
Clicks at the current mouse location. Useful when combined with- Returns:
- this object reference to chain calls
- See Also:
Actions.click()
-
doubleClick
public MouseActions doubleClick()
Performs a double-click at the current mouse location.- Returns:
- this object reference to chain calls
-
contextClick
public MouseActions contextClick()
Performs a context-click at the current mouse location.- Returns:
- this object reference to chain calls
- See Also:
Actions.contextClick()
-
-