playwright-chromium
1.65.1 · 13 Nov 2026Apache-2.0348.4k / weekRepositoryHomepagenpmAtom feed
Upgrading playwright-chromium From 0.10.0 to 0.11.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 12
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.11.0
- Breaking0.11.0
Release by release
- Breaking
browserType.launch- default mode for testing. Each test should start withbrowser.newContextto obtain a clean environment. All new contexts are ephemeral, not persisted into the profile directory. It no longer acceptsuserDataDiroption. There is no notion of thedefaultContextanymore. (Note: you will still see an empty default context window when you run playwright in the headful mode. This is a side-effect of running the stock browsers. We are working on changing this behavior upstream so that clear Playwright run in this mode has no open windows on launch.) - Breaking
Request interception
- New
New
browser.newPage- convenience method that creates a new context and a page inside that context. Closing the page closes the context. Useful when you only run single-page tests in your contexts. - New
New
page.check()andpage.uncheck()- toggle your checkboxes.
- Breaking
7 other lines we could not sort, mostly version bumps
- 0.11.0
Chromium 82.0.4057.0. Passes 99% (792/802) tests
- 0.11.0
Webkit 13.0.4. Passes 99% (792/802) tests
- 0.11.0
Firefox 73.0b13. Passes 95% (763/802) tests
- 0.11.0
browserType.launchPersistent- default mode for headful operations and those reusing the user profile. Instead of returning theBrowser, it returns theBrowserContextloaded from the user data dir right away. It requiresuserDataDirto be passed as the first parameter. - 0.11.0
browserType.launchServer- returns aBrowserServer(formerly known asBrowserApp) that can be connected to via thebrowserType.connect. Multiple clients can connect to the same server. Closing theBrowserdisconnects from the server. This mode is useful for certain test runner setups. - 0.11.0
page.setViewportis renamed topage.setViewportSize. It only allows resizing the viewport, does not allow changing it from mobile to desktop on the fly. Old method was making an implicit reload when switching device type and we did not want that to happen. - 0.11.0
page.viewport()is renamed topage.viewportSize()
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.