Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created June 19, 2019 01:16
Show Gist options
  • Save juliandescottes/1fa797065babce305c8d23f2d6da7ae8 to your computer and use it in GitHub Desktop.
Save juliandescottes/1fa797065babce305c8d23f2d6da7ae8 to your computer and use it in GitHub Desktop.

Puppeteer API changes between 1.6.0 and 1.17.0

1.16.0

Added

Changed

  • accessibility.snapshot now accepts a new root option (a3cb163)

1.15.0

Added

1.12.0

Added

Changed

  • page.setContent(html, options) now respects default navigation timeout (a064a63)

1.11.0

Changed

  • page.setContent (927d0f4) now accepts waitUntil option similar to page.goto.

1.10.0

Added

1.9.0

Added

1.8.0

Changed

  • PUPPETEER_CHROMIUM_REVISION and PUPPETEER_EXECUTABLE_PATH environment variables will now not only affect puppeteer installation but your scripts as well. (28d9211)
  • page.goto now accepts a referer argument. (cbce839)

Added

  • browser.defaultBrowserContext (50d6c2d)
  • browserContext.overridePermissions (50d6c2d)
  • browserContext.clearPermissionOverrides (50d6c2d)
  • page.setGeolocation (1702928)
  • response.remoteAddress (1ba2b85)
  • response.statusText (7f9e276)

1.7.0

Changed

  • puppeteer.defaultArgs() now accepts arguments that help it infer Chromium command-line flags. (6825088)
  • puppeteer.launch() argument ignoreDefaultArgs now acceps an array of flags to ignore. (40466cb)
  • page.pdf() accepts a new argument preferCSSPageSize (12e3510)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment