Skip to content

Commit 2cea322

Browse files
committed
docs: release notes for 1.48
1 parent 5947c21 commit 2cea322

File tree

5 files changed

+166
-2
lines changed

5 files changed

+166
-2
lines changed

docs/src/api/class-websocketroute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ page.routeWebSocket("/ws", ws -> {
2626
```
2727

2828
```python async
29-
def message_handler(ws, message):
29+
def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
3030
if message == "request":
3131
ws.send("response")
3232

@@ -36,7 +36,7 @@ await page.route_web_socket("/ws", lambda ws: ws.on_message(
3636
```
3737

3838
```python sync
39-
def message_handler(ws, message):
39+
def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
4040
if message == "request":
4141
ws.send("response")
4242

docs/src/release-notes-csharp.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
8+
## Version 1.48
9+
10+
### WebSocket routing
11+
12+
New methods [`method: Page.routeWebSocket`] and [`method: 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"`.
13+
14+
```csharp
15+
await page.RouteWebSocketAsync("/ws", ws => {
16+
ws.OnMessage(message => {
17+
if (message == "request")
18+
ws.Send("response");
19+
});
20+
});
21+
```
22+
23+
See [WebSocketRoute] for more details.
24+
25+
### UI updates
26+
27+
- New "copy" buttons for annotations and test location in the HTML report.
28+
- Route method calls like [`method: 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.
29+
- New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.
30+
31+
### Miscellaneous
32+
33+
- New method [`method: Page.requestGC`] may help detect memory leaks.
34+
- Requests made by [APIRequestContext] now record detailed timing and security information in the HAR.
35+
36+
### Browser Versions
37+
38+
- Chromium 130.0.6723.19
39+
- Mozilla Firefox 130.0
40+
- WebKit 18.0
41+
42+
This version was also tested against the following stable channels:
43+
44+
- Google Chrome 129
45+
- Microsoft Edge 129
46+
47+
748
## Version 1.47
849

950
### Network Tab improvements

docs/src/release-notes-java.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,46 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.48
8+
9+
### WebSocket routing
10+
11+
New methods [`method: Page.routeWebSocket`] and [`method: 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"`.
12+
13+
```java
14+
page.routeWebSocket("/ws", ws -> {
15+
ws.onMessage(message -> {
16+
if ("request".equals(message))
17+
ws.send("response");
18+
});
19+
});
20+
```
21+
22+
See [WebSocketRoute] for more details.
23+
24+
### UI updates
25+
26+
- New "copy" buttons for annotations and test location in the HTML report.
27+
- Route method calls like [`method: 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.
28+
- New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.
29+
30+
### Miscellaneous
31+
32+
- New method [`method: Page.requestGC`] may help detect memory leaks.
33+
- Requests made by [APIRequestContext] now record detailed timing and security information in the HAR.
34+
35+
### Browser Versions
36+
37+
- Chromium 130.0.6723.19
38+
- Mozilla Firefox 130.0
39+
- WebKit 18.0
40+
41+
This version was also tested against the following stable channels:
42+
43+
- Google Chrome 129
44+
- Microsoft Edge 129
45+
46+
747
## Version 1.47
848

949
### Network Tab improvements

docs/src/release-notes-js.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,48 @@ toc_max_heading_level: 2
66

77
import LiteYouTube from '@site/src/components/LiteYouTube';
88

9+
## Version 1.48
10+
11+
### WebSocket routing
12+
13+
New methods [`method: Page.routeWebSocket`] and [`method: 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"`.
14+
15+
```js
16+
await page.routeWebSocket('/ws', ws => {
17+
ws.onMessage(message => {
18+
if (message === 'request')
19+
ws.send('response');
20+
});
21+
});
22+
```
23+
24+
See [WebSocketRoute] for more details.
25+
26+
### UI updates
27+
28+
- New "copy" buttons for annotations and test location in the HTML report.
29+
- Route method calls like [`method: 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.
30+
- New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.
31+
32+
### Miscellaneous
33+
34+
- Option [`option: APIRequestContext.fetch.form`] and similar ones now accept [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData).
35+
- New method [`method: Page.requestGC`] may help detect memory leaks.
36+
- New option [`option: Test.step.location`] to pass custom step location.
37+
- Requests made by [APIRequestContext] now record detailed timing and security information in the HAR.
38+
39+
### Browser Versions
40+
41+
- Chromium 130.0.6723.19
42+
- Mozilla Firefox 130.0
43+
- WebKit 18.0
44+
45+
This version was also tested against the following stable channels:
46+
47+
- Google Chrome 129
48+
- Microsoft Edge 129
49+
50+
951
## Version 1.47
1052

1153
### Network Tab improvements

docs/src/release-notes-python.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.48
8+
9+
### WebSocket routing
10+
11+
New methods [`method: Page.routeWebSocket`] and [`method: 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"`.
12+
13+
```python
14+
def message_handler(ws: WebSocketRoute, message: Union[str, bytes]):
15+
if message == "request":
16+
ws.send("response")
17+
18+
page.route_web_socket("/ws", lambda ws: ws.on_message(
19+
lambda message: message_handler(ws, message)
20+
))
21+
```
22+
23+
See [WebSocketRoute] for more details.
24+
25+
### UI updates
26+
27+
- New "copy" buttons for annotations and test location in the HTML report.
28+
- Route method calls like [`method: 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.
29+
- New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.
30+
31+
### Miscellaneous
32+
33+
- New method [`method: Page.requestGC`] may help detect memory leaks.
34+
- Requests made by [APIRequestContext] now record detailed timing and security information in the HAR.
35+
36+
### Browser Versions
37+
38+
- Chromium 130.0.6723.19
39+
- Mozilla Firefox 130.0
40+
- WebKit 18.0
41+
42+
This version was also tested against the following stable channels:
43+
44+
- Google Chrome 129
45+
- Microsoft Edge 129
46+
47+
748
## Version 1.47
849

950
### Network Tab improvements

0 commit comments

Comments
 (0)