java - Connect two boxes with a line via drag and drop -
selenium rookie here question regarding drag , drop.
i have 2 boxes , 1 of boxes can drag line , connect other box.
i have tried various ways none of them seem work.
actions action = new action(driver); action.draganddrop(box1 , box2).perform(); // did not work action.clickandhold(box1).movetoelement(box2).release().perform(); //did not work either action.clickandhold(box).movebyoffset(coordonates of box2).release().perform(); // did not work
this knowledge of selenium stops , there other way can this?
i know xpath because when perform element.click(); access not that.
selenium's actions drag , drop not play nice html5, when trying move element frame , in several other situations. possibly can solve problem using jquery solution: [c#][selenium] how drag-hover-drop element
Comments
Post a Comment