You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to automate tests on a drag and drop feature.
I can't perform the drag and drop, the mouse is never released (and the target coordinates seems to be wrong)
I test this code with selenium 3.141.59 and selenium 4.0.0-rc-1, on the last stable chrome version.
Details: I already automate drag and drop feature testing without any issue. The difference seems to be here, the drag and drop is native, there is no external lib used to performed the drag and drop.
So I post you an exemple with the drag and drop on a w3schools page, with a completely simple code.
To Reproduce
@TestpublicvoidtestDragNDrop() throwsInterruptedException {
// loading driver with io.github.bonigarcia.webdrivermanagerWebDriverManager.chromedriver().setup();
// new Chrome driverfinalChromeDriverdriver = newChromeDriver();
// navigate to urldriver.navigate().to("https://www.w3schools.com/html/html5_draganddrop.asp");
// accept cookiesdriver.findElement(By.cssSelector("#accept-choices")).click();
// sourceElt: img to drag and dropfinalWebElementsourceElt = driver.findElement(By.cssSelector("div#div1 > img#drag1"));
// targetElt: div to drop the imgfinalWebElementtargetElt = driver.findElement(By.cssSelector("div#div2"));
// use Actions API to drag and dropnewActions(driver)
.pause(500)
.dragAndDrop(sourceElt, targetElt)
.pause(500)
.perform();
// a wait to see the result before end the testTimeUnit.SECONDS.sleep(5);
driver.quit();
}
Expected behavior
Drag and drop should be correctly performed
Current result: the move to element reached a bad target coordinates and the mouse release is not performed.
PS: after some test, with clickAndHold / moveToElement/ Release actions it's not that the mouse release is not performed.
It's after the mouse move, we cannot performed any new actions (release, another move,... nothing!)
Environment
OS: Ubuntu 20.04 / Windows 10 (on virtualbox)
Browser: Chrome
Browser version: e93.0.4577.82
Browser Driver version: loading driver with io.github.bonigarcia.webdrivermanager
Language Bindings version: Java 3.141.59 / 4.0.0-rc-1
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
I try to automate tests on a drag and drop feature.
I can't perform the drag and drop, the mouse is never released (and the target coordinates seems to be wrong)
I test this code with selenium 3.141.59 and selenium 4.0.0-rc-1, on the last stable chrome version.
Details: I already automate drag and drop feature testing without any issue. The difference seems to be here, the drag and drop is native, there is no external lib used to performed the drag and drop.
So I post you an exemple with the drag and drop on a w3schools page, with a completely simple code.
To Reproduce
Expected behavior
Drag and drop should be correctly performed
Current result: the move to element reached a bad target coordinates and the mouse release is not performed.
PS: after some test, with clickAndHold / moveToElement/ Release actions it's not that the mouse release is not performed.
It's after the mouse move, we cannot performed any new actions (release, another move,... nothing!)
Environment
OS: Ubuntu 20.04 / Windows 10 (on virtualbox)
Browser: Chrome
Browser version: e93.0.4577.82
Browser Driver version: loading driver with io.github.bonigarcia.webdrivermanager
Language Bindings version: Java 3.141.59 / 4.0.0-rc-1
The text was updated successfully, but these errors were encountered: