Is there a way to simulate a drag-and-drop with htmlunit-driver
?
When using Actions it throws an UnsupportedException
Inside the class HtmlUnitMouse:
@Override
public void mouseMove(Coordinates where, long xOffset, long yOffset) {
throw new UnsupportedOperationException("Moving to arbitrary X,Y coordinates not supported.");
}
My attempts for trying to do this:
first attempt
(new Actions(driver)).dragAndDropBy(sliderHandle, 50, 0)
.build()
.perform();
second attempt
(new Actions(driver)).moveToElement(sliderHandle)
.clickAndHold()
.moveToElement(sliderHandle, 50, 0)
.release()
.build()
.perform();
Is there a workaround for this?