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.
SubscribeRelated
locator.hoverpage.mousepage.locator