List of usage examples for org.openqa.selenium.interactions MoveMouseAction MoveMouseAction
public MoveMouseAction(Mouse mouse, Locatable locationProvider)
From source file:org.oneandone.qxwebdriver.interactions.Actions.java
License:LGPL
/** * Drag and drop action with additional mouse move required by qooxdoo. *//* ww w.j av a2 s . c om*/ public Actions dragAndDrop(WebElement source, WebElement target) { action.addAction(new ClickAndHoldAction(mouse, (Locatable) source)); // qx needs an additional mousemove event to initialize a drag session action.addAction(new MoveToOffsetAction(mouse, null, 5, 5)); action.addAction(new MoveMouseAction(mouse, (Locatable) target)); action.addAction(new ButtonReleaseAction(mouse, (Locatable) target)); return this; }