Playwright::Mouse
The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
Every page object has its own Mouse, accessible with page.mouse.
Instance methods
Shortcut for mouse.move(x, y[, options]), mouse.down([options]), mouse.up([options]).
Shortcut for mouse.move(x, y[, options]), mouse.down([options]), mouse.up([options]), mouse.down([options]) and mouse.up([options]).
down
Sourceup
Source