Skip to content

Page Handling #103

@Master-Daniel

Description

@Master-Daniel

there is a recent update of puppeteer and when a new tab is created it no longer provides

CDPPage {
  emitter: {
    all: Map(0) {},
    on: [Function: on],
    off: [Function: off],
    emit: [Function: emit]
  },
  eventsMap: Map(0) {}
}

this is what is been created once a new tab is created CdpPage { _isDragging: false }

Hence I get the error below

useProxyPer[target.constructor.name](target, data);
                                        ^
TypeError: useProxyPer[target.constructor.name] is not a function

even when I tried to rename CDPPage to CdpPage I still got another error from the removeRequestListener function located at node_modules\puppeteer-page-proxy\src\core\proxy.js

const listeners = page.eventsMap.get(eventName);
                                     ^
TypeError: Cannot read properties of undefined (reading 'get')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions