selenium can't drag Canvas elements
See original GitHub issueš Bug Report
There are abnormalities in the functions such as click, double-click, drag and drop of Canvas used by Selenium to automate testing. The specific reason is that Selenium cannot get the elements inside Canvas.
To Reproduce
Exercising a pageās dragging and dropping functionailty used to be simple with Seleniumsās Action Builder, but sadly ,it wonāt work with HTML5 drag and drop .
We use the selenium function āActions.dragAndDrop(source,target)ā to control the elements inside canvas,it dosenāt work that way for selenium canāt select the element .
Expected behavior
selenium can drap canvas elements
Test script or set of commands reproducing this issue
Actions actions = new Action(driver);
actions.dragAndDrop(source,target)ļ¼
The code dosenāt work ,also no exception.
Environment
OS: Windows 10
Browser: Chrome
Browser version: 90.0.4430.24
Browser Driver version: 90.0.4430.24
Language Bindings version: Java 8 c
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
What is running in
driver.get("http://localhost:9528");
? We need to have access to the page. What Selenium version are you using?This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.