Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

How to inject and use puppeteer-extra in a dappeteer browser in 4.0.2? #232

Open
gakuzen opened this issue Dec 25, 2022 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@gakuzen
Copy link

gakuzen commented Dec 25, 2022

Describe the problem
Hi, I am trying to use puppeteer-extra and its plugins to launch a dappeteer browser instance. In 4.0.2, there is no way to do this. However, in older versions, eg. 3.0.0, a custom puppeteer instance can be passed in the first argument of dappeteer.launch(). Is there any workaround in 4.0.2?

System:

  • OS: macOS
  • OS version 12.6.1
  • NodeJs version v16.15.1
  • dAppeteer version 4.0.2
@gakuzen gakuzen added the help wanted Extra attention is needed label Dec 25, 2022
@MohammadAbuzar945
Copy link

It looks like in version 4.0.2 of dappeteer, the launch function no longer accepts a custom Puppeteer instance as an argument. Instead, it creates a new instance of Puppeteer internally and uses that to launch a new browser.

If you need to use a custom Puppeteer instance, you can try downgrading to an older version of dappeteer that still supports this feature. For example, you could try using version 3.0.0, which you mentioned allows you to pass a custom Puppeteer instance to the launch function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants