elgalu / docker-selenium

[NOT MAINTAINED] Please use <https://github.com/SeleniumHQ/docker-selenium>
https://github.com/SeleniumHQ/docker-selenium
Other
1.42k stars 333 forks source link

Mouse drag very slow #332

Closed ahaverdings closed 5 years ago

ahaverdings commented 5 years ago

The mouse drag event got really slow with the newest selenium image. Older version: dragdrop1 Newest version dragdrop2

Operating System

Version

Last working version

Code for moving the mouse (by 10px each tick) using Java: public static void performMovement(Point movement, Actions builder) { Point movementRemains = new Point(Math.abs(movement.x), Math.abs(movement.y)); Point movementDirection = new Point(Integer.signum(movement.x), Integer.signum(movement.y)); while (movementRemains.x > 0 || movementRemains.y > 0) { Point movementStep = new Point( movementRemains.x > 10 ? 10 : movementRemains.x, movementRemains.y > 10 ? 10 : movementRemains.y ); builder.moveByOffset( movementDirection.x * movementStep.x, movementDirection.y * movementStep.y); movementRemains.x -= movementStep.x; movementRemains.y -= movementStep.y; } }

diemol commented 5 years ago

@ahaverdings this might be a bug in Chrome/ChromeDriver, not related to elgalu/selenium since this image is just packaging the browser in a container. Please submit Chrome/ChromeDriver issues to the Chromium team, either at https://bugs.chromium.org/p/chromium or https://bugs.chromium.org/p/chromedriver.