digestweb.dev
Propose a News Source
Curated byFRSOURCE

digestweb.dev

Your essential dose of webdev and AI news, handpicked.

Advertisement

Want to reach web developers daily?

Advertise with us ↗

Back to Daily Feed

Playwright 1.60 Boosts Testing with HAR Recording, Drag-and-Drop, and Aria Snapshots

Must Read

Originally published on Playwright Releases

View Original Article
Share this article:
Playwright 1.60 Boosts Testing with HAR Recording, Drag-and-Drop, and Aria Snapshots

Summary & Key Takeaways ​

  • Playwright 1.60 adds tracing.startHar() and tracing.stopHar() for first-class HAR recording, simplifying network activity capture during tests.
  • A new locator.drop() API allows simulating external drag-and-drop events, supporting files and clipboard data for robust UI testing.
  • expect(page).toMatchAriaSnapshot() now works on a Page object, with a boxes option to include bounding box data for AI consumption.
  • The test.abort() function enables immediate test failure from fixtures or hooks, useful for unrecoverable error detection.
  • New lifecycle events (browser.on('context')) are introduced for Browser, Context, and Page objects.

Our Commentary ​

Playwright continues to impress with its rapid feature development. Version 1.60 brings some genuinely powerful additions that will make end-to-end testing even more comprehensive. The HAR recording as a first-class API is a huge win for debugging network issues, and locator.drop() finally provides a robust way to test complex drag-and-drop interactions. We're also intrigued by the boxes option for Aria snapshots – it hints at a future where AI agents might be used to interpret and validate UI layouts, which is a fascinating direction for testing. The test.abort() feature is a practical improvement for test suite reliability.

Share this article:
RSS Atom JSON Feed
© 2026 digestweb.dev — brought to you by  FRSOURCE