@Test public void testDragAndDropByOffset() throws WidgetException { wd.open(url); IInteractiveElement ie = new InteractiveElement(getDiv("draggableText")); IInteractiveElement destination = new InteractiveElement(getDiv("dropBox")); ie.waitForElementPresent(); destination.waitForElementPresent(); ie.dragAndDropByOffset(0, -50); Assert.assertEquals("DragMe", destination.getText()); }
@Test public void testMouseMoveOut() throws WidgetException { wd.open(url); IInteractiveElement ie = new InteractiveElement(getDiv("dest")); IElement element = new Element(getDiv("content")); ie.waitForElementPresent(); ie.mouseMove(); ie.mouseMoveOut(); Assert.assertEquals("Mouse Moved Out", element.getText()); }