Closed ahaverdings closed 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.
The mouse drag event got really slow with the newest selenium image. Older version: Newest version
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; } }