Skip to content

Commit

Permalink
https://github.com/berstend/puppeteer-extra/pull/859
Browse files Browse the repository at this point in the history
  • Loading branch information
fawazahmed0 authored Oct 3, 2024
1 parent 39248f1 commit db32d1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function createPageShim(page: pw.Page | pw.Frame) {
return () => ({
send: async (method: string, params: any) => {
const session = await getPageCDPSession(page)
return await session.send(method as any, params)
return await session.send(method as any, params).catch(console.error)
},
on: (event: string, listener: any) => {
getPageCDPSession(page).then(session => {
Expand Down

0 comments on commit db32d1f

Please sign in to comment.