Skip to content
masterclass Buddy

Playwright · Method

page.hover

Hovers over the first element that matches a selector. Playwright waits for it to be ready, scrolls it into view, and moves the mouse over it. Use locator.hover() for new code.

Last updated

Since
before v1.9

Syntax

page.hover(selector, **kwargs)

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

Subscribe
  • locator.hover
  • page.mouse
  • page.locator

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