πŸ’‘ If you like this website, please share it with your friends and network! πŸš€

Lesson 12: Reporters, Video & Traces

Artifacts and Reporting

Playwright generates detailed artifacts to help you debug failures.

1. HTML Reporter

A beautiful, built-in HTML dashboard.

typescript

// playwright.config.ts

export default defineConfig({

reporter: 'html',

});

2. Video & Traces

Capture video and execution traces on failure.

typescript

use: {

video: 'retain-on-failure',

trace: 'retain-on-failure',

}

    CareerRaah: The Ultimate Interview Preparation Platform