Support puppeteer v14

This issue has been created since 2022-05-13.

Using puppeteer v14 with puppeteer-extra causes the browser to hang indefinitely after calling browser.newPage()

andrei0x309 wrote this answer on 2022-05-29

I am using ^14.1.1 and I don't face this issue.

For me, it just froze because I had page.goto(url, { waitUntil: 'domcontentloaded' }) changed to page.goto(url, { waitUntil: 'networkidle2' }) and had no problems with the mentioned version ( also tried in docker with headless: true still worked).

Before ^14.1.1 I was using ^10.0.0.

carefulcomputer wrote this answer on 2022-05-29

@DustinJSilk , i was getting error when I had pageinterception on.

await page.setRequestInterception(true);

with no code to intercept.
After I removed it, it started working. Check if you have same.

Rongronggg9 wrote this answer on 2022-05-30

puppeteer-extra-plugin-stealth also makes jest exit with ReferenceError.

$ NODE_ENV=test jest --coverage --runInBand --forceExit --detectOpenHandles puppeteer
 PASS  test/utils/puppeteer.js (44.736 s)
  puppeteer
    ✓ puppeteer run (31474 ms)
    ✓ puppeteer without stealth (6382 ms)
    ✓ puppeteer with stealth (6481 ms)          <--- If skipped, everything will be fine

Running coverage on untested files...
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. From test/utils/puppeteer.js.

      at node_modules/puppeteer/src/common/Debug.ts:58:8
      at debugLevel (node_modules/puppeteer/src/common/Debug.ts:58:8)
TypeError: (intermediate value).default is not a function
    at debugLevel (/media/rongrong/DATA/git-repo/RSSHub/node_modules/puppeteer/src/common/Debug.ts:58:38)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
let puppeteer = require('puppeteer');
const { addExtra } = require('puppeteer-extra');
puppeteer = addExtra(puppeteer);
puppeteer.use(require('puppeteer-extra-plugin-stealth')());
berstend wrote this answer on 2022-06-20

Puppeteer v14 support has just been improved, if this does not fix it please open a new issue.

More Details About Repo
Owner Name berstend
Repo Name puppeteer-extra
Full Name berstend/puppeteer-extra
Language JavaScript
Created Date 2018-05-15
Updated Date 2022-09-26
Star Count 4330
Watcher Count 110
Fork Count 560
Issue Count 111

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Switch between view modes (html, plain) 0 2021-01-05 2022-07-11
[Question] How to set accent parameter which is used on hugging face? 2 2022-04-18 2022-08-02
Error : could not find version that satisfies the requirement 1 2022-05-03 2022-07-17
[Questions] Different behavior between latest github (default branch) and hugging face version 3 2022-04-18 2022-09-25
This is scary. At step 8,000 I'm getting decent English and passable Cherokee! 1 2022-04-17 2022-08-08
Question about duration, pitch, and energy tensor lists for read_to_file 4 2022-04-17 2022-09-04
Feature Request: FAQ Creation 3 2022-05-10 2022-08-06
Linux: Support building PHP with curl extension 4 2019-07-18 2022-09-28
Transfer learning of the chemprop 4 2021-03-19 2022-09-13
Brush editor slider disappeared? 2 2021-01-22 2022-09-28
It says a bug was detected. 1 2021-01-22 2022-09-28
lsqr! not minimizing norm 1 2022-09-05 2022-09-08
Missing form fields 2 2021-11-12 2022-01-10
🐛 [Bug] `torch.clone` fails with error `RuntimeError: [Error thrown at core/conversion/conversionctx/ConversionCtx.cpp:162] Building serialized network failed in TensorRT` 0 2022-03-02 2022-09-20
ModuleNotFoundError: No module named 'PIL' 1 2021-03-21 2022-09-03
[Request] Cadence: JACK profiles as in qjackctl 1 2016-01-29 2022-02-20
Cadence should have an option to run a2jmidid with -u flag 1 2014-08-27 2022-07-01
[v9] Concrete CMS unusable after installing Empty Site with Elemental 4 2022-02-21 2022-08-22
3 and 3.1 seem broken 4 2021-03-18 2022-08-18
VLess+websocket+TLS+Nginx+Website客户端配置不能填IP 1 2020-11-01 2022-09-21
Do not show vCOW card to a not connected user/user with 0 (v)COW balance 0 2022-03-23 2022-06-27
Add the input-overlay plugin 2 2020-07-08 2022-08-14
OBS Studio chrashes on Fedora 32 with GNOME 3.36 and Desktop Screencast 22 2020-04-02 2022-09-12
Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated. 10 2020-08-31 2022-08-14
Unknown NVENC error with nvidia driver from Debian backports 8 2020-09-22 2022-08-20
Interesting behaviour with Gnome scaling enabled. 7 2020-06-06 2022-09-26
Extremely poor performance when screencasting single window using pipewire 2 2020-10-01 2022-08-14
OBS 25.0.8 (Linux - Ubunto 18.04.5) - Black Screen 6 2020-09-04 2022-08-14
Chrome 96.0.4664.45 0 2021-11-17 2022-01-14
oss-fuzz last week: 29 bug-security 0 2021-11-18 2022-09-13
Use driver with MongoDB replica sets - is it possible? 2 2021-01-18 2022-09-28
quickstart: should run the quickstart failed 0 2022-09-17 2022-09-18
'NoneType' object has no attribute 21 2022-08-25 2022-09-21
Not support guzzle 7+ 3 2021-01-17 2022-09-27
Where are the node features added? 0 2021-03-20 2022-09-28
In user-bundle 5.3.0, error: Key "form" for array with keys "role, role_translated, is_granted" does not exist. 3 2022-07-14 2022-09-28
Password do not work in admin form login after upgrade to 5.x-dev 4 2022-01-26 2022-09-28
How to include all bib entries at the appendix without citing them? 0 2021-09-27 2022-08-13
Error output doesn't end with a newline 0 2021-06-11 2022-09-28
Make it easy to determine whether a user agent supports SPC 6 2021-06-24 2022-09-16
Adding another Subnet??? 6 2021-06-25 2022-08-27
`cml pr` keep previous reports with `--pr --update` 8 2021-11-05 2022-03-06
Problem caused by deterministic deployments when modifying only PRBProxyRegistry 2 2021-09-10 2022-09-15
TCC 模式, 如果 Server 端重启了, 那么此前未完成的事务是怎么恢复的呢? 可否告知下对应的源码在哪里 2 2022-05-11 2022-09-15
在typeScrpit模式下 <Player sources={sources}/> 提示类型错误, 1 2021-02-21 2022-09-08
Make cert-manager dependency optional 0 2022-05-31 2022-08-12
feat: 可以获取到关联的代码库对应的issue或其他单据信息 0 2022-06-30 2022-08-19
SLA上报周活跃项目增加跨库监听的触发项目数 0 2022-07-01 2022-08-11
move notebook storage layer to yjs 4 2021-10-06 2022-09-28
Add discountAmount and selectedOptions to productListItems 0 2022-03-16 2022-09-15