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:
Summary & Key Takeaways
- Playwright 1.60 adds
tracing.startHar()andtracing.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 aPageobject, with aboxesoption 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: