Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Handling #103

Open
Master-Daniel opened this issue Oct 18, 2023 · 7 comments
Open

Page Handling #103

Master-Daniel opened this issue Oct 18, 2023 · 7 comments

Comments

@Master-Daniel
Copy link

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')
@oliveremberton
Copy link

Same here, seems to work with Puppeteer 21.2.x but not Puppeteer 21.3.x.

@LeM0-Dev
Copy link

Duplicate! Use code in this pull request. #101

@LeM0-Dev
Copy link

You can use https://www.npmjs.com/package/@lem0-packages/puppeteer-page-proxy
if you want

@harisrozak
Copy link

You can use https://www.npmjs.com/package/@lem0-packages/puppeteer-page-proxy if you want

I have tried your package, but still getting this error:
"Cannot read properties of undefined (reading 'get')"

@LeM0-Dev
Copy link

LeM0-Dev commented Dec 1, 2023

You can use https://www.npmjs.com/package/@lem0-packages/puppeteer-page-proxy if you want

I have tried your package, but still getting this error: "Cannot read properties of undefined (reading 'get')"

Because you are using dappeteer.
LeM0-Dev#2 (comment)

@GinoGreen
Copy link

You can use https://www.npmjs.com/package/@lem0-packages/puppeteer-page-proxy if you want

I have tried your package, but still getting this error: "Cannot read properties of undefined (reading 'get')"

Because you are using dappeteer. LeM0-Dev#2 (comment)

I'm your proxy repo with puppeteer-cluster, and i'm getting the same error: Cannot read properties of undefined (reading 'get')

Is there a problem using puppeteer-cluster?

@ofirsnb
Copy link

ofirsnb commented Jan 24, 2024

You can use https://www.npmjs.com/package/@lem0-packages/puppeteer-page-proxy if you want

Can confirm this is working great with latest puppeteer version 21.9.0.

Thank you LeM0-Dev !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants