Skip to content
masterclass Buddy

Playwright · Concept

page

page.add_locator_handler() runs a callback when a matching overlay blocks an action or assertion. The callback should remove the overlay so Playwright can continue.

Last updated

Since
1.42

Syntax

page.add_locator_handler(locator, handler, no_wait_after=False, times=None)

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

Subscribe
  • Locator
  • page.set_default_timeout()
  • page.add_init_script()
  • page.on()
  • page.remove_listener()

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