tried with TouchActions did not work.
TouchAction actions = new TouchAction((MobileDriver) driver);
actions.press(draggable.element().getLocation().x, draggable.element().getLocation().y);
actions.moveTo(droppable.element().getLocation().x, droppable.element().getLocation().y);
actions.release();
actions.perform();
thanks… looks like in my case i had to perform waitAction after doing longPress. just longPress was not enough coz it was releasing the element too soon.
actions.longPress(element(draggable).element()).waitAction(2000).moveTo(element(droppable).element());