Big Changes
- Browser Contexts can be used to isolate the cookies and other data usually shared between pages.
- Workers can now be used to interact with Web Workers.
- pptr.dev is the new official site for Puppeteer docs.
It is open source at https://github.com/GoogleChromeLabs/pptr.dev - Chromium 69.0.3452.0 (r564778)
API Changes
Added
browser.browserContexts()
(3b03ff6)browser.createIncognitoBrowserContext()
(3b03ff6)event: 'workercreated'
(93fe2b5)event: 'workerdestroyed'
(93fe2b5)page.isClosed()
(32f4c17)page.workers()
(93fe2b5)request.isNavigationRequest()
(724fa51)target.browserContext()
(3b03ff6)target.opener()
(f635668)
Bug Fixes
- #2640 - console message from Webworker receives only first argument
- #2684 - Slack invite link in readme doesn't work
- #2632 - Workers are flaky
- #2627 - How to set header in puppeter just main page request not all request
- #1830 - keep track of opened popups and (maybe optionally) close them when page.close() is called
- #2547 - Annoying "Assertion failed" logs even when error is handled
- #2566 - Allow base64 result in screenshot
- #2402 - Different initial pages in different modes
- #2501 - do we have any method or attribute to indicate that page has closed?
- #2540 - waitForPredicatePageFunction doesn't respect timeout equal to 0
- #2350 - Expose Page Workers
- #2439 - Target: pass through "background_page" types
- #85 - Support browser contexts to launch different sessions
Raw notes
75ba86f fix: emit all arguments from worker console logs (#2697)
9083335 docs(contributing): add section about releasing to NPM (#2695)
2ff0adc feat: worker convenience methods (#2677)
3e82a54 docs: update slack invite link in README.md (#2690)
36b8700 chore(ci): remove Win from Cirrus builds (#2689)
a058468 feat: roll Chromium to r564778 (#2681)
4bc2331 chore(ci): temporary disable cirrus win builds (#2666)
efc0e0f feat(chromium): roll Chromium to r563942 (#2665)
d802372 fix: disable OOPIF by default (#2661)
85d5a33 chore(ci): switch Windows containers (#2662)
9904da2 chore(doclint): remove old unused table-of-contents generator (#2659)
9955a1e fix(browser): ensure first page is created when browser is launched (#2658)
07b91f6 test: split out headful tests into headful.spec.js (#2657)
e038026 docs(api.md): Fix CDPSession code example (#2654)
0f8c7e7 feat(launcher): disable crash reporting by default (#2652)
724fa51 feat(network): introduce Request.isNavigationRequest() method (#2633)
f635668 feat(targets): add target.opener() (#2641)
0b94fa7 chore: stop using console.assert everywhere (#2646)
35e3f12 fix(workers): swallow errors when auto-detaching from page subtargets (#2649)
1c0ecc3 test: fix flaky test (#2650)
0ba72df test: verify ignoreHTTPSErrors works with puppeteer.connect (#2648)
754df58 docs(api.md): fix table-of-contents (#2636)
0ad0096 chore(utils): change utils/check_availability.js to fetch last revisions (#2635)
14b5144 docs(examples): add link to puppeteer-har (#2643)
1c2adf6 fix(workers): workaround worker execution context flakiness (#2596)
469b910 feat(page): allow screenshot to return a base64 string (#2586)
e1c40bd chore(examples): Change networkidle2 to networkidle0 (#2618)
1bbd094 feat(test): enable dumpio in tests #2610
8e12d19 fix(tests): normalize scrollbars in headful tests (#2622)
41ccd0b chore(docs): remove old and non relevant function usage (#2623)
5ff67db docs(api.md): Add the word "network" (#2624)
c9a843b chore(types): generate protocol.d.ts on install (#2625)
7d64d40 chore(frame): minor refactor in FrameManager (#2597)
f6393d8 docs(api.md): mention that page.$$eval and frame.$$eval return arrays (#2595)
b8df8bd feat(launcher): launch browser with 'about:blank' by default (#2594)
1e07925 feat(elementhandle): add elementHandle.$$eval method (#2589)
32f4c17 feat(page): add page.isClosed method (#2588)
b522eca docs(api.md): update puppeteer overview (#2584)
debfe7e fix(page): respect timeout 0 in page.waitForFunction (#2563)
6a0627a fix(page): Don't report clientside error with a node stack attached (#2572)
17bc651 docs(api.md): goForward should say "can not go forward" (#2578)
93fe2b5 feat(Page): introduce workers (#2560)
b474f2c test: add a missing test for elementHandle. (#2580)
2d9e5a0 test: add test that validates that pages open with userDataDir arg (#2564)
5164593 refactor: do not pass user options to browser constructor (#2562)
2d82e08 chore: bump dependencies (#2559)
de82b87 docs(documentation) capitalize and end sentences (#2537)
1c4a8f0 docs(README): remove duplicate line
23d25a6 feat(Target): Pass through "background_page" types (#2439) (#2493)
3b03ff6 feat(BrowserContext): introduce Browser Contexts. (#2523)
58c672b feat(Chromium): roll Chromium to r557152 (#2522)
d02440d chore: bump version to v1.4.0-post (#2521)