We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
framereceived
1 parent 5ef117c commit 0b1604aCopy full SHA for 0b1604a
1 file changed
test/lib/browsers/playwright.ts
@@ -333,8 +333,12 @@ export class Playwright<TCurrent = undefined> {
333
websocketFrames.push({ payload: frame.payload })
334
335
if (tracePlaywright) {
336
+ const { payload } = frame
337
page
- .evaluate(`console.log('received ws message ${frame.payload}')`)
338
+ // Note that passing the payload as a an argument is 2 orders of magnitude more expensive in Playwright.
339
+ .evaluate(
340
+ `console.log('received ws message ${JSON.stringify(payload)}')`
341
+ )
342
.catch(() => {})
343
}
344
})
0 commit comments