💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 版本记录 ## Puppeteer v1.11.0 Release Notes ## Big Changes - Chromium 72.0.3618.0 (r609904) - [`page.setContent`](https://github.com/GoogleChrome/puppeteer/blob/v1.11.0/docs/api.md#pagesetcontenthtml-options) now awaits resource loading ([`927d0f443b832609c91ecd7bdbf1945a5d219c60`](https://github.com/GoogleChrome/puppeteer/commit/927d0f443b832609c91ecd7bdbf1945a5d219c60)) ## API Changes #### Changed: - [`page.setContent`](https://github.com/GoogleChrome/puppeteer/blob/v1.11.0/docs/api.md#pagesetcontenthtml-options) ([`927d0f443b832609c91ecd7bdbf1945a5d219c60`](https://github.com/GoogleChrome/puppeteer/commit/927d0f443b832609c91ecd7bdbf1945a5d219c60)) now accepts `waitUntil` option similar to [`page.goto`](https://github.com/GoogleChrome/puppeteer/blob/v1.11.0/docs/api.md#pagegotourl-options). ## Bug Fixes - [\#728](https://github.com/GoogleChrome/puppeteer/issues/728) - Page.setContent should wait for resources to be loaded - [\#3517](https://github.com/GoogleChrome/puppeteer/issues/3517) - Page#setViewport required options - [\#3549](https://github.com/GoogleChrome/puppeteer/issues/3549) - Functions bound with page.exposeFunction() produce unhandled promise rejections - [\#2262](https://github.com/GoogleChrome/puppeteer/issues/2262) - Problem with PUPPETEER\_SKIP\_CHROMIUM\_DOWNLOAD ## Raw Notes [`a0cbaf3`](https://github.com/GoogleChrome/puppeteer/commit/a0cbaf3) - chore(types): lint the api docs with typescript ([\#3577](https://github.com/GoogleChrome/puppeteer/issues/3577)) [`fb5b080`](https://github.com/GoogleChrome/puppeteer/commit/fb5b080) - feat(chromium): roll Chromium to r609904 ([\#3587](https://github.com/GoogleChrome/puppeteer/issues/3587)) [`6656519`](https://github.com/GoogleChrome/puppeteer/commit/6656519) - test: split out dialog tests ([\#3586](https://github.com/GoogleChrome/puppeteer/issues/3586)) [`309cbe6`](https://github.com/GoogleChrome/puppeteer/commit/309cbe6) - test: split out navigation tests ([\#3585](https://github.com/GoogleChrome/puppeteer/issues/3585)) [`d61916b`](https://github.com/GoogleChrome/puppeteer/commit/d61916b) - test: split out evaluation tests ([\#3584](https://github.com/GoogleChrome/puppeteer/issues/3584)) [`e839189`](https://github.com/GoogleChrome/puppeteer/commit/e839189) - test: split input tests into keyboard, mouse and touchscreen ([\#3583](https://github.com/GoogleChrome/puppeteer/issues/3583)) [`25f4f26`](https://github.com/GoogleChrome/puppeteer/commit/25f4f26) - test: extract clicking tests ([\#3582](https://github.com/GoogleChrome/puppeteer/issues/3582)) [`a181bdd`](https://github.com/GoogleChrome/puppeteer/commit/a181bdd) - test: split out emulation tests ([\#3581](https://github.com/GoogleChrome/puppeteer/issues/3581)) [`a5b1978`](https://github.com/GoogleChrome/puppeteer/commit/a5b1978) - test: split out waittask tests ([\#3580](https://github.com/GoogleChrome/puppeteer/issues/3580)) [`e5830d1`](https://github.com/GoogleChrome/puppeteer/commit/e5830d1) - test: split queryselector tests into separate file ([\#3579](https://github.com/GoogleChrome/puppeteer/issues/3579)) [`aa9fb82`](https://github.com/GoogleChrome/puppeteer/commit/aa9fb82) - test: split screenshot tests into separate file ([\#3578](https://github.com/GoogleChrome/puppeteer/issues/3578)) [`a04100c`](https://github.com/GoogleChrome/puppeteer/commit/a04100c) - docs(troubleshooting): added link to alixaxel/chrome-aws-lambda ([\#3576](https://github.com/GoogleChrome/puppeteer/issues/3576)) [`927d0f4`](https://github.com/GoogleChrome/puppeteer/commit/927d0f4) - feat(page): support waitUntil option for `page.setContent` ([\#3557](https://github.com/GoogleChrome/puppeteer/issues/3557)) [`e2e43bc`](https://github.com/GoogleChrome/puppeteer/commit/e2e43bc) - fix(page): navigating 11 pages simultaneously should not throw warning ([\#3560](https://github.com/GoogleChrome/puppeteer/issues/3560)) [`86e0959`](https://github.com/GoogleChrome/puppeteer/commit/86e0959) - docs(api.md): mark optional arguments in signatures ([\#3565](https://github.com/GoogleChrome/puppeteer/issues/3565)) [`f6bfa32`](https://github.com/GoogleChrome/puppeteer/commit/f6bfa32) - docs(api.md): fixes [\#3517](https://github.com/GoogleChrome/puppeteer/issues/3517) ([\#3561](https://github.com/GoogleChrome/puppeteer/issues/3561)) [`d9d9996`](https://github.com/GoogleChrome/puppeteer/commit/d9d9996) - feat(chromium): roll Chromium to r608752 ([\#3555](https://github.com/GoogleChrome/puppeteer/issues/3555)) [`03d8746`](https://github.com/GoogleChrome/puppeteer/commit/03d8746) - test(accessibility): Fix duplicated test ([\#3539](https://github.com/GoogleChrome/puppeteer/issues/3539)) [`95a19c7`](https://github.com/GoogleChrome/puppeteer/commit/95a19c7) - fix(page): dispatch errors into page ([\#3550](https://github.com/GoogleChrome/puppeteer/issues/3550)) [`c185eee`](https://github.com/GoogleChrome/puppeteer/commit/c185eee) - feat(install): support configurations in package.json ([\#3449](https://github.com/GoogleChrome/puppeteer/issues/3449)) [`766a951`](https://github.com/GoogleChrome/puppeteer/commit/766a951) - docs(troubleshooting): update on sandboxing ([\#3531](https://github.com/GoogleChrome/puppeteer/issues/3531)) [`eb7bd9d`](https://github.com/GoogleChrome/puppeteer/commit/eb7bd9d) - test: setup sandbox on linux ([\#3530](https://github.com/GoogleChrome/puppeteer/issues/3530)) [`10a4c8c`](https://github.com/GoogleChrome/puppeteer/commit/10a4c8c) - docs(troubleshooting): modern linux sandboxing [`5687343`](https://github.com/GoogleChrome/puppeteer/commit/5687343) - fix(types): fix parameters where they disagree with the api ([\#3525](https://github.com/GoogleChrome/puppeteer/issues/3525)) [`27ea226`](https://github.com/GoogleChrome/puppeteer/commit/27ea226) - test: fix workers test ([\#3527](https://github.com/GoogleChrome/puppeteer/issues/3527)) [`d3f50ea`](https://github.com/GoogleChrome/puppeteer/commit/d3f50ea) - chore: update dependencies ([\#3526](https://github.com/GoogleChrome/puppeteer/issues/3526)) [`1d671c6`](https://github.com/GoogleChrome/puppeteer/commit/1d671c6) - chore(bisect): properly output bisect ranges + output styling ([\#3523](https://github.com/GoogleChrome/puppeteer/issues/3523)) [`576c8f8`](https://github.com/GoogleChrome/puppeteer/commit/576c8f8) - chore(chromium): roll Chromium to r606647 ([\#3522](https://github.com/GoogleChrome/puppeteer/issues/3522)) [`6693537`](https://github.com/GoogleChrome/puppeteer/commit/6693537) - chore: add utils/bisect.js to bisect chromium revisions ([\#3511](https://github.com/GoogleChrome/puppeteer/issues/3511)) [`59e7e8c`](https://github.com/GoogleChrome/puppeteer/commit/59e7e8c) - docs(api.md): update returned value description ([\#3514](https://github.com/GoogleChrome/puppeteer/issues/3514)) [`79ec7a3`](https://github.com/GoogleChrome/puppeteer/commit/79ec7a3) - fix(types): fix return types where JSDoc and api.md disagree ([\#3512](https://github.com/GoogleChrome/puppeteer/issues/3512)) [`04b6ca8`](https://github.com/GoogleChrome/puppeteer/commit/04b6ca8) - Fix dead link ([\#3497](https://github.com/GoogleChrome/puppeteer/issues/3497)) [`b9f2104`](https://github.com/GoogleChrome/puppeteer/commit/b9f2104) - test(cookies): Remove duplicated test. ([\#3492](https://github.com/GoogleChrome/puppeteer/issues/3492)) [`52a1030`](https://github.com/GoogleChrome/puppeteer/commit/52a1030) - feat(chromium): roll Chromium to r604907 ([\#3488](https://github.com/GoogleChrome/puppeteer/issues/3488)) [`6b65407`](https://github.com/GoogleChrome/puppeteer/commit/6b65407) - test: unflake cookie test on windows ([\#3489](https://github.com/GoogleChrome/puppeteer/issues/3489)) [`60a8d41`](https://github.com/GoogleChrome/puppeteer/commit/60a8d41) - chore: bump version to v1.10.0-post ([\#3483](https://github.com/GoogleChrome/puppeteer/issues/3483)) puppeteer.js中文网|版本记录 puppeteer.js中文文档, puppeteer chrome, puppeteer firefox, puppeteer api 中文文档 puppeteer.js中文网包含了Puppeteer中文文档,最新资讯,应用案例等。Puppeteer 是一个 Node 库,它提供了一个高级 API 来通过 DevTools 协议控制 Chromium 或 Chrome。