Skip to content

Commit 1f7618d

Browse files
committed
add browser log debug
1 parent bacb872 commit 1f7618d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ async function captureFramesWithTiming(
516516
async function captureFramesProgrammatically(page, captureFrameFunction) {
517517
const frames = []
518518

519+
page.on("console", msg => {
520+
console.log("BROWSER:", msg.text())
521+
})
522+
519523
// set up the event listener and capture loop
520524
await page.exposeFunction("captureFrame", async () => {
521525
const frame = await captureFrameFunction()

0 commit comments

Comments
 (0)