ChromeDriver doesn't support interactions with canvas elements?

153 views
Skip to first unread message

Eric Liu

unread,
Mar 11, 2020, 3:20:53 PM3/11/20
to Selenium Developers
I have some code that clicks and holds then moves the cursor across the screen in order to navigate across a map. The code works fine in FireFox, but does not work with Chrome/Edge since they both run on Chromium.

Is there any workaround for this so I can navigate across canvas elements on Chrome? Thanks

Actions act = new Actions(webDriver);
act
.moveToElement(canvasElement).clickAndHold().moveByOffset(x, y).release().build().perform()
Reply all
Reply to author
Forward
0 new messages