I used below code with multiple points but still its not even drawing a dot on canvas. It is not even recognizing the element. Any other options to automate?
WebElement element = driver.findElement(By.xpath("xpath of canvas"));
Actions builder = new Actions(driver);
Action drawAction = builder.moveToElement(element,135,15) //start points x axis and y axis.
.click()
.moveByOffset(200, 60) // 2nd points (x1,y1)
.click()
.moveByOffset(100, 70)// 3rd points (x2,y2)
.doubleClick()
.build();
drawAction.perform();