Open romanresh opened 1 month ago
@romanresh While we consider this feature request for prioritization, you can probably work around it by calling page.mouse.down()/move()/up()
and passing steps there.
@romanresh While we consider this feature request for prioritization, you can probably work around it by calling
page.mouse.down()/move()/up()
and passing steps there.
Yes, thank you, we use this WA in our tests.
It makes tests less stable because the drag event also makes a few checks before performing drag and drop: stabilize element, visibility and others. So, it's also important to call the Locator.dragTo(.., { trial: true })
before down/move/up
.
All these actions allow to test our scenarios, but the result trace log contains too much excess information.
🚀 Feature Request
By default, the Locator.dragTo method raises one intermediate mousemove event. We need to set the
steps
option to increase number of intermediate mousemove events as it's implemented in the Mouse.Move method options.Example
Set the non-default
steps
option:await source.dragTo(target, { steps: 3 });
Motivation
There are a few cases: