Skip to content

Commit 6b328cc

Browse files
Upgrade: [dependabot] - bump playwright from 1.50.0 to 1.51.0 (#267)
Bumps [playwright](https://github.com/microsoft/playwright-python) from 1.50.0 to 1.51.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/microsoft/playwright-python/releases">playwright's releases</a>.</em></p> <blockquote> <h2>v1.51.0</h2> <h2>Highlights</h2> <ul> <li> <p>New option <a href="https://playwright.dev/python/docs/api/class-browsercontext#browser-context-storage-state-option-indexed-db"><code>indexed_db</code></a> for <a href="https://playwright.dev/python/docs/api/class-browsercontext#browser-context-storage-state">browserContext.storage_state()</a> allows to save and restore IndexedDB contents. Useful when your application uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB API</a> to store authentication tokens, like Firebase Authentication.</p> <p>Here is an example following the <a href="https://playwright.dev/python/docs/auth#reusing-signed-in-state">authentication guide</a>:</p> <pre lang="python"><code># Save storage state into the file. Make sure to include IndexedDB. storage = context.storage_state(path=&quot;state.json&quot;, indexed_db=True) <h1>Create a new context with the saved storage state.</h1> <p>context = browser.new_context(storage_state=&quot;state.json&quot;)<br /> </code></pre></p> </li> <li> <p>New option <a href="https://playwright.dev/python/docs/api/class-locator#locator-filter-option-visible"><code>visible</code></a> for <a href="https://playwright.dev/python/docs/api/class-locator#locator-filter">locator.filter()</a> allows matching only visible elements.</p> <pre lang="python"><code># Ignore invisible todo items. todo_items = page.get_by_test_id(&quot;todo-item&quot;).filter(visible=True) # Check there are exactly 3 visible ones. expect(todo_items).to_have_count(3) </code></pre> </li> <li> <p>New option <code>contrast</code> for methods <a href="https://playwright.dev/python/docs/api/class-page#page-emulate-media">page.emulate_media()</a> and <a href="https://playwright.dev/python/docs/api/class-browser#browser-new-context">browser.new_context()</a> allows to emulate the <code>prefers-contrast</code> media feature.</p> </li> <li> <p>New option <a href="https://playwright.dev/python/docs/api/class-apirequest#api-request-new-context-option-fail-on-status-code"><code>fail_on_status_code</code></a> makes all fetch requests made through the <a href="https://playwright.dev/python/docs/api/class-apirequestcontext">APIRequestContext</a> throw on response codes other than 2xx and 3xx.</p> </li> </ul> <h2>Browser Versions</h2> <ul> <li>Chromium 134.0.6998.35</li> <li>Mozilla Firefox 135.0</li> <li>WebKit 18.4</li> </ul> <p>This version was also tested against the following stable channels:</p> <ul> <li>Google Chrome 133</li> <li>Microsoft Edge 133</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/playwright-python/commit/256635b08bbeaaba8f60e56fa6ac275d980e4e04"><code>256635b</code></a> devops: fix ESRP publishing</li> <li><a href="https://github.com/microsoft/playwright-python/commit/3f97c8a67b5f94d62ece03714265ed3ba8992dcd"><code>3f97c8a</code></a> chore(roll): roll Playwright to 1.51.1 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2786">#2786</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/25fb05dd18012e2ed42d3c8470d954581c1674ad"><code>25fb05d</code></a> test: migrate flaky plugin to rerunfailures (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2772">#2772</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/1b95464568894d6e63370614e41971e6dd74792d"><code>1b95464</code></a> chore(roll): roll Playwright to 1.51.0-beta-1741166263000 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2767">#2767</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/55725d50e3705b7a16e1050b9bace2a64fb0c7fd"><code>55725d5</code></a> test: unflake tests (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2768">#2768</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/85339738c6bb51feb98148d30bc950329d73fa24"><code>8533973</code></a> build(deps): bump setuptools from 75.8.0 to 75.8.2 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2763">#2763</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/23f1532023f395449f5e2e2228b5e25e0038bf4e"><code>23f1532</code></a> build(deps): bump pytest from 8.3.4 to 8.3.5 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2762">#2762</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/3e61c3f0a1a019e322820543710fc0eddd0a8421"><code>3e61c3f</code></a> build(deps): bump types-requests from 2.32.0.20241016 to 2.32.0.20250301 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2761">#2761</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/738f98ddb0043b51dde014927156c6249921bcd8"><code>738f98d</code></a> devops: use ESRP PME for publishing (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2760">#2760</a>)</li> <li><a href="https://github.com/microsoft/playwright-python/commit/4e98d68fb0a350d41a8e65c62f27e93db8d0808c"><code>4e98d68</code></a> build(deps): bump flake8 from 7.1.1 to 7.1.2 (<a href="https://redirect.github.com/microsoft/playwright-python/issues/2748">#2748</a>)</li> <li>Additional commits viewable in <a href="https://github.com/microsoft/playwright-python/compare/v1.50.0...v1.51.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=playwright&package-manager=pip&previous-version=1.50.0&new-version=1.51.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> 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) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 871b03a commit 6b328cc

File tree

2 files changed

+108
-29
lines changed

2 files changed

+108
-29
lines changed

0 commit comments

Comments
 (0)