docs: add video to release notes (#33147)
This commit is contained in:
Родитель
d10a5e5693
Коммит
9848ebec5a
|
@ -8,6 +8,11 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
|
||||||
|
|
||||||
## Version 1.48
|
## Version 1.48
|
||||||
|
|
||||||
|
<LiteYouTube
|
||||||
|
id="VGlkSBkMVCQ"
|
||||||
|
title="Playwright 1.48"
|
||||||
|
/>
|
||||||
|
|
||||||
### WebSocket routing
|
### WebSocket routing
|
||||||
|
|
||||||
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"`.
|
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"`.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче