-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
🚀 Feature Request
Since mouse.click is defined as:
Shortcut for mouse.move(x, y[, options]), mouse.down([options]), mouse.up([options])
it should accept the steps option.
In other words, types PageMouseClick<Options/Params> should be an intersection of their own properties and the properties of PageMouseMove<Options/Params>, respectively.
EDIT: The same follows for dblclick
Example
One should be able to call
await page.mouse.click(x, y, { delay: 100 , steps: 10});instead of:
await page.mouse.move(x, y, { steps: 10 });
await page.mouse.click(x, y,{ delay: 100 });Motivation
Utilize Playwright's test videos as instructional material for new users of the web app.
A linear mouse movement using steps is more user-friendly and therefore preferred.
cpAdm
Metadata
Metadata
Assignees
Labels
No labels