microsoft/playwright-java (com.microsoft.playwright:playwright)
### [`v1.48.0`](https://redirect.github.com/microsoft/playwright-java/releases/tag/v1.48.0)
[Compare Source](https://redirect.github.com/microsoft/playwright-java/compare/v1.47.0...v1.48.0)
#### WebSocket routing
New methods [page.routeWebSocket()](https://playwright.dev/java/docs/api/class-page#page-route-web-socket) and [browserContext.routeWebSocket()](https://playwright.dev/java/docs/api/class-browsercontext#browser-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"`.
```java
page.routeWebSocket("/ws", ws -> {
ws.onMessage(message -> {
if ("request".equals(message))
ws.send("response");
});
});
```
See [WebSocketRoute](https://playwright.dev/java/docs/api/class-websocketroute) for more details.
#### UI updates
- New "copy" buttons for annotations and test location in the HTML report.
- Route method calls like [route.fulfill()](https://playwright.dev/java/docs/api/class-route#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
- New method [page.requestGC()](https://playwright.dev/java/docs/api/class-page#page-request-gc) may help detect memory leaks.
- Requests made by [APIRequestContext](https://playwright.dev/java/docs/api/class-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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
1.47.0
->1.48.0
Release Notes
microsoft/playwright-java (com.microsoft.playwright:playwright)
### [`v1.48.0`](https://redirect.github.com/microsoft/playwright-java/releases/tag/v1.48.0) [Compare Source](https://redirect.github.com/microsoft/playwright-java/compare/v1.47.0...v1.48.0) #### WebSocket routing New methods [page.routeWebSocket()](https://playwright.dev/java/docs/api/class-page#page-route-web-socket) and [browserContext.routeWebSocket()](https://playwright.dev/java/docs/api/class-browsercontext#browser-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"`. ```java page.routeWebSocket("/ws", ws -> { ws.onMessage(message -> { if ("request".equals(message)) ws.send("response"); }); }); ``` See [WebSocketRoute](https://playwright.dev/java/docs/api/class-websocketroute) for more details. #### UI updates - New "copy" buttons for annotations and test location in the HTML report. - Route method calls like [route.fulfill()](https://playwright.dev/java/docs/api/class-route#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 - New method [page.requestGC()](https://playwright.dev/java/docs/api/class-page#page-request-gc) may help detect memory leaks. - Requests made by [APIRequestContext](https://playwright.dev/java/docs/api/class-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 129Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.