Sourced from @​playwright/test
's
releases.
v1.48.0
WebSocket routing
New methods page.routeWebSocket() and browserContext.routeWebSocket() 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"
.await page.routeWebSocket('/ws', ws => { ws.onMessage(message => { if (message === 'request') ws.send('response'); }); });
See WebSocketRoute for more details.
UI updates
- New "copy" buttons for annotations and test location in the HTML report.
- Route method calls like route.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
- Option
form
and similar ones now accept FormData.- New method page.requestGC() may help detect memory leaks.
- New option
location
to pass custom step location.- Requests made by APIRequestContext now record detailed timing and security information in the HAR.
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
v1.47.2
Highlights
microsoft/playwright#32699 [REGRESSION]: fix(codegen): use content_frame property in python/.NET microsoft/playwright#32706 [REGRESSION]: page.pause() does not pause test timeout after 1.47 microsoft/playwright#32661 - fix(trace-viewer): time delta between local and remote actions
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
... (truncated)
0cdbb11
chore: mark v1.48.0 (#33009)ca368d4
cherry-pick(#32991):
fix(routeWebSocket): do not show in the trace (#33004)c329c5c
cherry-pick(#33005):
chore(driver): roll driver to recent Node.js LTS version97aaa12
cherry-pick(#32956):
fix(fetch): listener leaks on Socket0c17732
cherry-pick(#32949):
feat(chromium): roll to r1140530f043
cherry-pick(#32938):
feat(firefox): roll to r14651054930
cherry-pick(#32924):
docs: fix Java/.NET types for docs rollinge732f68
cherry-pick(#32906):
feat(chromium): roll to r1139dfa0e8b
cherry-pick(#32905):
chore: remove 'screenshot instead of snapshot' usages7155356
cherry-pick(#32880):
chore: unflake 'should record'