Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: microsoft/playwright-python

v1.53.0

25 Jun 16:23
3713a32
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Miscellaneous

  • New Steps in Trace Viewer:
    New Trace Viewer Steps

  • New methodlocator.describe() to describe a locator. Used for trace viewer.

    button=page.get_by_test_id("btn-sub").describe("Subscribe button")button.click()
  • python -m playwright install --list will now list all installed browsers, versions and locations.

Browser Versions

  • Chromium 138.0.7204.4
  • Mozilla Firefox 139.0
  • WebKit 18.5

This version was also tested against the following stable channels:

  • Google Chrome 137
  • Microsoft Edge 137
Assets2
Loading
weibk, FHU-yezi, jurajdurajka, and Vishal-010 reacted with thumbs up emoji
4 people reacted

v1.52.0

30 Apr 09:04
eec856f
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Highlights

  • New methodexpect(locator).to_contain_class() to ergonomically assert individual class names on the element.

    expect(page.get_by_role("listitem",name="Ship v1.52")).to_contain_class("done")
  • Aria Snapshots got two new properties:/children for strict matching and/url for links.

    expect(locator).to_match_aria_snapshot("""  - list    - /children: equal    - listitem: Feature A    - listitem:      - link "Feature B":        - /url: "https://playwright.dev"""")

Miscellaneous

Breaking Changes

  • Methodroute.continue() does not allow to override theCookie header anymore. If aCookie header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, usebrowserContext.add_cookies().
  • macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.

Browser Versions

  • Chromium 136.0.7103.25
  • Mozilla Firefox 137.0
  • WebKit 18.4

This version was also tested against the following stable channels:

  • Google Chrome 135
  • Microsoft Edge 135
Loading
Vinyzu, Nusnus, yudelevi, uhector, oidualc, testy-cool, DoreyKiss, markvrllo, volodink, and k1907341853 reacted with rocket emoji
10 people reacted

v1.51.0

18 Mar 09:08
Compare
Choose a tag to compare
Loading

Highlights

  • New optionindexed_db forbrowserContext.storage_state() allows to save and restore IndexedDB contents. Useful when your application usesIndexedDB API to store authentication tokens, like Firebase Authentication.

    Here is an example following theauthentication guide:

    # Save storage state into the file. Make sure to include IndexedDB.storage=context.storage_state(path="state.json",indexed_db=True)# Create a new context with the saved storage state.context=browser.new_context(storage_state="state.json")
  • New optionvisible forlocator.filter() allows matching only visible elements.

    # Ignore invisible todo items.todo_items=page.get_by_test_id("todo-item").filter(visible=True)# Check there are exactly 3 visible ones.expect(todo_items).to_have_count(3)
  • New optioncontrast for methodspage.emulate_media() andbrowser.new_context() allows to emulate theprefers-contrast media feature.

  • New optionfail_on_status_code makes all fetch requests made through theAPIRequestContext throw on response codes other than 2xx and 3xx.

Browser Versions

  • Chromium 134.0.6998.35
  • Mozilla Firefox 135.0
  • WebKit 18.4

This version was also tested against the following stable channels:

  • Google Chrome 133
  • Microsoft Edge 133
Loading
stevleibelt, at146, Nusnus, AndreiDrang, binbjz, and volodink reacted with thumbs up emojibinbjz and volodink reacted with hooray emojibinbjz and volodink reacted with rocket emoji
6 people reacted

v1.50.0

03 Feb 14:36
058a335
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Async Pytest Plugin

Miscellaneous

UI updates

  • New button in Codegen for picking elements to produce aria snapshots.
  • Additional details (such as keys pressed) are now displayed alongside action API calls in traces.
  • Display ofcanvas content in traces is error-prone. Display is now disabled by default, and can be enabled via theDisplay canvas content UI setting.
  • Call andNetwork panels now display additional time information.

Breaking

Browser Versions

  • Chromium 133.0.6943.16
  • Mozilla Firefox 134.0
  • WebKit 18.2

This version was also tested against the following stable channels:

  • Google Chrome 132
  • Microsoft Edge 132
Loading
stevleibelt, binbjz, andressadotpy, tgz-cz, brolnickij, and Leoawad reacted with thumbs up emojibinbjz, andressadotpy, brolnickij, and Leoawad reacted with hooray emojimbroton, b-long, scott-au, binbjz, andressadotpy, brolnickij, Leoawad, and bootuz reacted with rocket emoji
10 people reacted

v1.49.1

10 Dec 17:24
Compare
Choose a tag to compare
Loading

Highlights

#2679 - [Bug]: Warning: Validation of the RECORD file of playwright-1.49.0-py3-none-manylinux1_x86_64.whl failed

Browser Versions

  • Chromium 131.0.6778.33
  • Mozilla Firefox 132.0
  • WebKit 18.2

This version was also tested against the following stable channels:

  • Google Chrome 130
  • Microsoft Edge 130
Loading
ErcinDedeoglu, brolnickij, and binbjz reacted with thumbs up emojiErcinDedeoglu, brolnickij, dron4ik86, and binbjz reacted with hooray emojiErcinDedeoglu, brolnickij, and binbjz reacted with rocket emoji
4 people reacted

v1.49.0

22 Nov 12:19
ebf26a6
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Aria snapshots

New assertionexpect(locator).toMatchAriaSnapshot() verifies page structure by comparing to an expected accessibility tree, represented as YAML.

page.goto("https://playwright.dev")expect(page.locator('body')).to_match_aria_snapshot('''  - banner:    - heading /Playwright enables reliable/ [level=1]    - link "Get started"    - link "Star microsoft/playwright on GitHub"  - main:    - img "Browsers (Chromium, Firefox, WebKit)"    - heading "Any browser • Any platform • One API"''')

You can generate this assertion withTest Generator or by callinglocator.ariaSnapshot().

Learn more in thearia snapshots guide.

Tracing groups

New methodtracing.group() allows you to visually group actions in the trace viewer.

# All actions between group and group_end# will be shown in the trace viewer as a group.page.context.tracing.group("Open Playwright.dev > API")page.goto("https://playwright.dev/")page.get_by_role("link",name="API").click()page.context.tracing.group_end()

Breaking:chrome andmsedge channels switch to new headless mode

This change affects you if you're using one of the following channels in yourplaywright.config.ts:

  • chrome,chrome-dev,chrome-beta, orchrome-canary
  • msedge,msedge-dev,msedge-beta, ormsedge-canary

After updating to Playwright v1.49, run your test suite. If it still passes, you're good to go. If not, you will probably need to update your snapshots, and adapt some of your test code around PDF viewers and extensions. Seeissue #33566 for more details.

Try new Chromium headless

You can opt into the new headless mode by using'chromium' channel. Asofficial Chrome documentation puts it:

New Headless on the other hand is the real Chrome browser, and is thus more authentic, reliable, and offers more features. This makes it more suitable for high-accuracy end-to-end web app testing or browser extension testing.

Seeissue #33566 for the list of possible breakages you could encounter and more details on Chromium headless. Please file an issue if you see any problems after opting in.

pytest test_login.py --browser-channel chromium

Miscellaneous

  • There will be no more updates for WebKit on Ubuntu 20.04 and Debian 11. We recommend updating your OS to a later version.
  • <canvas> elements inside a snapshot now draw a preview.
  • Python 3.8 is not supported anymore.

Browser Versions

  • Chromium 131.0.6778.33
  • Mozilla Firefox 132.0
  • WebKit 18.2

This version was also tested against the following stable channels:

  • Google Chrome 130
  • Microsoft Edge 130
Loading
FHU-yezi, Nusnus, at146, and binbjz reacted with thumbs up emojiFHU-yezi, Nusnus, and binbjz reacted with heart emojimbroton, scott-au, ltsuda, FHU-yezi, Nusnus, and binbjz reacted with rocket emoji
7 people reacted

v1.48.0

21 Oct 13:45
b807406
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

WebSocket routing

New methodspage.route_web_socket() andbrowser_context.route_web_socket() allow to intercept, modify and mock WebSocket connections initiated in the page. Below is a simple example that mocks WebSocket communication by responding to a"request" with a"response".

defmessage_handler(ws:WebSocketRoute,message:Union[str,bytes]):ifmessage=="request":ws.send("response")page.route_web_socket("/ws",lambdaws:ws.on_message(lambdamessage:message_handler(ws,message)))

SeeWebSocketRoute for more details.

UI updates

  • New "copy" buttons for annotations and test location in the HTML report.
  • Route method calls likeroute.fulfill() are not shown in the report and trace viewer anymore. You can see which network requests were routed in the network tab instead.
  • New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.

Miscellaneous

  • New methodpage.request_gc() may help detect memory leaks.
  • Requests made byAPIRequestContext now record detailed timing and security information in the HAR.
  • This version adds support for Python 3.13
  • This version is the last version supporting Python 3.8

Browser Versions

  • Chromium 130.0.6723.19
  • Mozilla Firefox 130.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 129
  • Microsoft Edge 129
Loading
FHU-yezi, 5j9, mmmcorpsvit, binbjz, AndreiDrang, xxr0ss, cda2, and stasivoleh reacted with thumbs up emojibinbjz and ltsuda reacted with hooray emojimbroton, andrevoget, realasib, at146, and binbjz reacted with heart emoji
13 people reacted

v1.47.0

12 Sep 16:54
082db40
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Network Tab improvements

The Network tab in the trace viewer has several nice improvements:

  • filtering by asset type and URL
  • better display of query string parameters
  • preview of font assets

Network tab now has filters

Miscellaneous

  • Themcr.microsoft.com/playwright-python:v1.47.0 now serves a Playwright image based on Ubuntu 24.04 Noble.
    To use the 22.04 jammy-based image, please usemcr.microsoft.com/playwright-python:v1.47.0-jammy instead.
  • The:latest/:focal/:jammy tag for Playwright Docker images is no longer being published. Pin to a specific version for better stability and reproducibility.
  • TLS client certificates can now be passed from memory by passingcert andkey as bytes instead of file paths.
  • no_wait_after inlocator.selectOption() was deprecated.
  • We've seen reports of WebGL in Webkit misbehaving on GitHub Actionsmacos-13. We recommend upgrading GitHub Actions tomacos-14.

Browser Versions

  • Chromium 129.0.6668.29
  • Mozilla Firefox 130.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 128
  • Microsoft Edge 128
Loading
egoan82, FHU-yezi, at146, stevleibelt, mecklena, Leoawad, and binbjz reacted with thumbs up emojibinbjz reacted with hooray emojiDataEnggNerd, egoan82, fullerzz, mecklena, Leoawad, and binbjz reacted with rocket emoji
9 people reacted

v1.46.0

12 Aug 12:04
8b9bcdc
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

TLS Client Certificates

Playwright now allows to supply client-side certificates, so that server can verify them, as specified by TLS Client Authentication.

You can provide client certificates as a parameter ofbrowser.new_context() andapi_request.new_context(). The following snippet sets up a client certificate forhttps://example.com:

context=browser.new_context(client_certificates=[        {"origin":"https://example.com","certPath":"client-certificates/cert.pem","keyPath":"client-certificates/key.pem",        }    ],)

When using thePytest plugin, it can be added like this:

@pytest.fixture(scope="session")defbrowser_context_args(browser_context_args):return {**browser_context_args,"client_certificates": [            {"origin":"https://example.com","certPath":"client-certificates/cert.pem","keyPath":"client-certificates/key.pem",            }        ],    }

Trace Viewer Updates

  • Content of text attachments is now rendered inline in the attachments pane.
  • New setting to show/hide routing actions likeroute.continue_().
  • Request method and status are shown in the network details tab.
  • New button to copy source file location to clipboard.
  • Metadata pane now displays thebase_url.

Miscellaneous

Browser Versions

  • Chromium 128.0.6613.18
  • Mozilla Firefox 128.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 127
  • Microsoft Edge 127
Loading
Nusnus, mecklena, fullerzz, light-abc, binbjz, and martincollado reacted with thumbs up emojiNusnus, mecklena, ltsuda, at146, binbjz, shri4r, and martincollado reacted with hooray emojiNusnus, mecklena, binbjz, and martincollado reacted with heart emojiNusnus, binbjz, and martincollado reacted with rocket emoji
9 people reacted

v1.45.1

23 Jul 11:07
b2e5ef2
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Highlights

microsoft/playwright-java#1617 - [Bug]: Trace Viewer not reporting all actions
microsoft/playwright#31764 - [Bug]: some actions do not appear in the trace file

Browser Versions

  • Chromium 127.0.6533.5
  • Mozilla Firefox 127.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 126
  • Microsoft Edge 126
Loading
at146, stasivoleh, fisheatershen, and binbjz reacted with thumbs up emojibinbjz reacted with hooray emoji
4 people reacted
Previous1345910
Previous

[8]ページ先頭

©2009-2025 Movatter.jp