After executing the handler added with page.add_locator_handler(), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new no_wait_after option.
You can use new times option in page.add_locator_handler() to specify maximum number of times the handler should be run.
locator = page.get_by_text("This interstitial covers the button")
page.add_locator_handler(locator, lambda overlay: overlay.locator("#close").click(), times=3, no_wait_after=True)
# Run your tests that can be interrupted by the overlay.
# ...
page.remove_locator_handler(locator)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps playwright from 1.43.0 to 1.44.0.
Release notes
Sourced from playwright's releases.
Commits
7cc2bc9
chore(roll): roll Playwright to 1.44.0-beta-1715802478000 (#2438)e756233
feat(roll): roll Playwright to v1.44.0 (#2433)8dc3978
build(deps): bump pytest from 8.1.1 to 8.2.0 (#2422)a053818
test: unflake Firefox tests (#2431)7bd2c7f
build(deps): bump mypy from 1.9.0 to 1.10.0 (#2423)789a47e
build(deps): bump pytest-xdist from 3.5.0 to 3.6.1 (#2421)5cf07fa
build(deps): bump types-pyopenssl from 24.0.0.20240417 to 24.1.0.20240425 (#2...4ac3b49
build(deps): bump black from 24.4.0 to 24.4.2 (#2419)27079a1
devops: upgrade EsrpRelease task to v7 (#2429)cb94c25
fix(connect): Future exception was never retrieved on close() (#2427)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show