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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -