Ir al contenido
verdict:

Playwright 1.61.0

featured

note: la síntesis y las notas de la versión están en inglés

note: sin síntesis para esta release más antigua

Sintetizamos las releases recientes. Las notas de la versión originales de esta versión están aquí abajo.

release-notesgithub.com/microsoft/playwright · 63 líneas
  1. ## 🔑 WebAuthn passkeys
  2. New [Credentials](https://playwright.dev/docs/api/class-credentials) virtual authenticator, available via [browserContext.credentials](https://playwright.dev/docs/api/class-browsercontext#browser-context-credentials), lets tests register passkeys and answer `navigator.credentials.create()` / `navigator.credentials.get()` ceremonies in the page — no real hardware key required, works in all browsers:
  3. ```js
  4. const context = await browser.newContext();
  5. // Seed a passkey your backend provisioned for a test user.
  6. await context.credentials.create('example.com', {
  7. id: credentialId,
  8. userHandle,
  9. privateKey,
  10. publicKey,
  11. });
  12. await context.credentials.install();
  13. const page = await context.newPage();
  14. await page.goto('https://example.com/login');
  15. // The page's navigator.credentials.get() is answered with the seeded passkey.
  16. ```
  17. You can also let the app register a passkey once in a setup test, read it back with [credentials.get()](https://playwright.dev/docs/api/class-credentials#credentials-get), and seed it into later tests — see [Credentials](https://playwright.dev/docs/api/class-credentials) for details.
  18. ## 🗃️ Web Storage
  19. New [WebStorage](https://playwright.dev/docs/api/class-webstorage) API, available via [page.localStorage](https://playwright.dev/docs/api/class-page#page-local-storage) and [page.sessionStorage](https://playwright.dev/docs/api/class-page#page-session-storage), reads and writes the page's storage for the current origin:
  20. ```js
  21. await page.localStorage.setItem('token', 'abc');
  22. const token = await page.localStorage.getItem('token');
  23. const items = await page.sessionStorage.items();
  24. ```
  25. ## New APIs
  26. ### Network
  27. - [apiResponse.securityDetails()](https://playwright.dev/docs/api/class-apiresponse#api-response-security-details) and [apiResponse.serverAddr()](https://playwright.dev/docs/api/class-apiresponse#api-response-server-addr) mirror the browser-side [response.securityDetails()](https://playwright.dev/docs/api/class-response#response-security-details) and [response.serverAddr()](https://playwright.dev/docs/api/class-response#response-server-addr).
  28. ### Browser and Screencast
  29. - New option `artifactsDir` in [browserType.connectOverCDP()](https://playwright.dev/docs/api/class-browsertype#browser-type-connect-over-cdp) controls where artifacts such as traces and downloads are stored when attached to an existing browser.
  30. - New option `cursor` in [screencast.showActions()](https://playwright.dev/docs/api/class-screencast#screencast-show-actions) controls the cursor decoration rendered for pointer actions.
  31. - The `onFrame` callback in [screencast.start()](https://playwright.dev/docs/api/class-screencast#screencast-start) now receives a `timestamp` of when the frame was presented by the browser.
  32. ### Test runner
  33. - The [testOptions.video](https://playwright.dev/docs/api/class-testoptions#test-options-video) option now supports the same set of modes as `trace`: new `'on-all-retries'`, `'retain-on-first-failure'` and `'retain-on-failure-and-retries'` values. See the [video modes table](https://playwright.dev/docs/test-use-options#video-modes) for which runs are recorded and kept in each mode.
  34. - Supported `expect.soft.poll(...)`.
  35. - New [fullConfig.argv](https://playwright.dev/docs/api/class-fullconfig#full-config-argv) — a snapshot of `process.argv` from the runner process, handy for reading custom arguments passed after the `--` separator.
  36. - New [fullConfig.failOnFlakyTests](https://playwright.dev/docs/api/class-fullconfig#full-config-fail-on-flaky-tests) mirrors the config option, so reporters can explain why a flaky run failed.
  37. - [testInfo.errors](https://playwright.dev/docs/api/class-testinfo#test-info-errors) now lists each sub-error of an `AggregateError` as a separate entry.
  38. - New `-G` command line shorthand for `--grep-invert`.
  39. ## 🛠️ Other improvements
  40. - Playwright now supports Ubuntu 26.04.
  41. - HAR and trace recordings now include WebSocket requests.
  42. ## Browser Versions
  43. - Chromium 149.0.7827.55
  44. - Mozilla Firefox 151.0
  45. - WebKit 26.5
  46. This version was also tested against the following stable channels:
  47. - Google Chrome 149
  48. - Microsoft Edge 149

ver en githubimported 2026-09-28 vía npm