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