Skip to content
masterclass Buddy

Playwright · Class

Mouse

Playwright's Mouse class sends mouse actions at CSS-pixel coordinates in the main-frame viewport. Use page.mouse for clicks, movement, button presses, releases, and wheel input.

Last updated

Since
v1.9

Syntax

page.mouse.click(x, y, options?)
page.mouse.dblclick(x, y, options?)
page.mouse.down(options?)
page.mouse.move(x, y, options?)
page.mouse.up(options?)
page.mouse.wheel(deltaX, deltaY)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • click
  • dblclick
  • down
  • move
  • up
  • wheel
  • page.mouse

Source: Mouse | Playwright. Checked 2026-11-03.