How to Debug Test Script in Playwright | Learn Playwright using TypeScript Full Course | Part 9
Master Playwright automation testing with TypeScript in this comprehensive 25-part course series! This beginner-to-advanced tutorial will transform you into a Playwright expert. [ RESOURCES ] Official Playwright Documentation: https://playwright.dev/docs/debug Github Link for web application: https://github.com/Animesh66/demo-ui-actions-perform Github link for automation code: https://github.com/Animesh66/pw-demo/tree/part-9 [ CONNECT WITH ME ] LinkedIn: https://www.linkedin.com/in/qa-amukherjee/ Need a one-on-one session? Book here: https://topmate.io/animesh_mukherjee/ [ TIMESPAMPS ] 0:00 - Introduction 0:20 - Table of Contents 0:37 - Why is debugging essential for test engineers? 2:15 - How to debug a test using Playwright? 7:55 - Use page.pause() for debugging in Playwright 10:24 - Playwright ui mode 14:58 - Playwright trace viewer 18:08 - Knowledge Check 18:20 - Thank You What You'll Learn in This Video 🔍 How to Debug Playwright Test Script? • Debug Mode Fundamentals: Understanding Playwright's debugging capabilities • Command Line Debugging: Running tests in debug mode with --debug flag Using --headed mode for visual debugging Step-by-step execution and breakpoint management • IDE Integration Debugging: Setting up VS Code debugging configuration Breakpoint strategies for effective troubleshooting Variable inspection and call stack analysis • Browser Developer Tools: Integrating browser DevTools with Playwright debugging Network tab analysis for API call debugging Console logs and error message interpretation • Page Screenshot & Video Debugging: Capturing screenshots at failure points Recording test execution videos Visual debugging techniques for UI issues • Logging Strategies: Console.log() best practices for test debugging Custom logging frameworks integration Debugging output formatting and filtering • Common Debugging Scenarios: Element not found errors Timing and synchronization issues Assertion failures and unexpected behavior Network request debugging and API issues 🎬 What is Playwright Trace Viewer? • Trace Viewer Overview: Revolutionary debugging tool introduction • Enabling Trace Collection: Configuration setup for trace recording Performance considerations and storage management Selective tracing for specific test scenarios • Trace Viewer Interface: Navigation and timeline exploration Action replay and step-by-step analysis DOM snapshot inspection at each action Network activity monitoring and analysis • Advanced Trace Features: Screenshot comparison and visual debugging Console logs integration within traces Performance metrics and timing analysis Error highlighting and failure point identification • Trace Analysis Workflows: Identifying root causes of test failures Performance bottleneck detection Cross-browser behavior comparison Sharing traces with team members for collaboration • Best Practices: When to enable/disable tracing Trace file management and cleanup Integration with CI/CD pipelines Security considerations for sensitive data Hashtags: #learnwithanimesh #playwrighttutorial #testautomation #playwright #typescript
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.