Skip to content
4 changes: 4 additions & 0 deletions docs/src/api/class-mouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.

:::tip
If you want to debug where the mouse moved, you can use the [Trace viewer](../trace-viewer-intro.md) or [Playwright Inspector](../running-tests.md). A red dot showing the location of the mouse will be shown for every mouse action.
:::

Every `page` object has its own Mouse, accessible with [`property: Page.mouse`].

```js
Expand Down
4 changes: 4 additions & 0 deletions packages/playwright-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20137,6 +20137,10 @@ export interface Logger {
/**
* The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
*
* **NOTE** If you want to debug where the mouse moved, you can use the [Trace viewer](https://playwright.dev/docs/trace-viewer-intro) or
* [Playwright Inspector](https://playwright.dev/docs/running-tests). A red dot showing the location of the mouse will be shown for every
* mouse action.
*
* Every `page` object has its own Mouse, accessible with
* [page.mouse](https://playwright.dev/docs/api/class-page#page-mouse).
*
Expand Down
4 changes: 4 additions & 0 deletions packages/playwright-core/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20137,6 +20137,10 @@ export interface Logger {
/**
* The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
*
* **NOTE** If you want to debug where the mouse moved, you can use the [Trace viewer](https://playwright.dev/docs/trace-viewer-intro) or
* [Playwright Inspector](https://playwright.dev/docs/running-tests). A red dot showing the location of the mouse will be shown for every
* mouse action.
*
* Every `page` object has its own Mouse, accessible with
* [page.mouse](https://playwright.dev/docs/api/class-page#page-mouse).
*
Expand Down
Loading