Clicking on given coordinates of element in protractor
问题 I want to click on a specific location of my canvas element, so I wrote the following Protractor code: var canvas = element(by.id("canvas")); var clickCanvas = function(toRight, toBottom) { browser.actions() .mouseMove(canvas, -toRight, -toBottom) .click(); } toRight / toBottom are the numbers of pixels where the click should be made, relative the top left corner of my canvas. However, the click does not seem to be executed at the given coordinates. I got the snippet from a related question