I am tyring to move element within canvas but somehow it is not happening.
Code I tried :
Actions actions = new Actions(driver);
actions.moveToElement(flowCanvas, 434, 177);
actions.clickAndHold();
actions.moveToElement(flowCanvas, 592 , 373);
actions.release();
actions.perform();
My xpath :
@FindBy(xpath = "//div[@id='diagramDiv']//canvas")
protected WebElement flowCanvas;
URL where I am trying : https://gojs.net/latest/samples/panelLayout.html
I am using selenium webdriver and Java. I am not getting any error in above code but it does not move element as well.
Trying to move following element :