(locator: Locator)
| 30 | original_locator = page.get_by_text("This interstitial covers the button") |
| 31 | |
| 32 | async def handler(locator: Locator) -> None: |
| 33 | assert locator == original_locator |
| 34 | nonlocal before_count |
| 35 | nonlocal after_count |
| 36 | before_count += 1 |
| 37 | await page.locator("#close").click() |
| 38 | after_count += 1 |
| 39 | |
| 40 | await page.add_locator_handler(original_locator, handler) |
| 41 |
nothing calls this directly
no test coverage detected