While working on Selenium with JavaScript(Chrome Browser), Need to drag and drop an element. With the below code, could able to drag but drop is not happening
await driver.actions({bridge:true}).dragAndDrop(source,destination).perform();
I've found some solutions in Java, however I am working on Selenium with JavaScript.
试试这样
driver.actions({bridge:true}).dragAndDrop(source,destination).build().perform();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.