I am trying to automate UI of a web page. Please find the link for the webpage below http://demoqa.com/draggable/
In this web page we have an option called Draggable + Sortable .Click on Draggable + Sortable option. An un ordered list appears. List items can be dragged and we can re-arrange the order of this list.
I wrote a code to automate this . But my code is partially working. code is able to drag the element but unable to place it where I want. please find the steps in the code. I am trying to place One at the bottom of the list
WebElement drgnsort = dr.findElement(By.linkText("Draggable + Sortable"));
drgnsort.click();
WebElement container = dr.findElement(By.id("sortablebox"));
List<WebElement> lis = container.findElements(By.tagName("li"));
WebElement one = lis.get(0);
builder.clickAndHold(one).moveByOffset(0,200).release().perform();