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.
SubscribeRelated
Locatorpage.set_default_timeout()page.add_init_script()page.on()page.remove_listener()