- ホーム
- > 洋書
- > 英文書
- > Computer / General
Full Description
Launch bulletproof web applications confidently by writing smarter, faster, and more reliable tests using Playwright with this comprehensive guide.
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
Key Features
Architect resilient test suites using Playwright's advanced APIs
Optimize performance, parallelism, and debugging for complex apps
Integrate cross-browser testing into scalable CI/CD workflows
Book DescriptionHands-On Automated Testing with Playwright draws from Faraz and Butch's extensive experience to help you harness the full potential of Microsoft's Playwright framework.
The book begins with a quick setup refresher, walking you through intermediate and advanced concepts such as dynamic content handling, accessibility testing, AI-generated test scripts, and parallel test execution. You'll explore real-world applications with end-to-end testing workflows for e-commerce and single-page applications. Alongside traditional topics such as accessibility, mobile, and visual regression testing, this book delves into modern trends such as CI/CD pipelines, DevOps integration, and AI-driven testing enhancements. Each chapter is packed with practical examples, expert techniques, and performance optimization tips, helping you gain a deep understanding of maintainable automation strategies.
Whether you're transitioning from manual testing or expanding your automation toolbox, this Playwright book provides the skills and confidence to build future-proof testing systems in today's complex web development landscape.
*Email sign-up and proof of purchase required
What you will learn
Set up and configure Playwright for cross-browser testing
Generate and refine AI-powered test scripts
Perform mobile, accessibility, and visual regression tests
Debug with Playwright Inspector and Trace Viewer
Integrate tests into CI/CD with GitHub Actions
Use page objects and patterns for maintainable code
Simulate real-world user flows in complex apps
Optimize performance and parallelize test execution
Who this book is forThis book is for two main groups. First, web developers and test automation engineers with up to five years of experience in JavaScript or similar languages. If you have a solid grasp of web development and want to adopt or deepen your use of Playwright, you'll find this book beneficial. Second, QA professionals who have basic scripting knowledge and are ready to transition from manual to automated testing. If you want to upskill using Playwright, this book offers clear, relatable examples that bridge manual testing concepts with automation practices.
Contents
Table of Contents
Quick Setup Refresher
Advanced Selectors and Handling Dynamic Content
Browser-Agnostic Testing Across Chromium, Firefox, and WebKit
AI-Powered Test Generation
Crafting Scalable Tests with the Fixture System
Test Parallelization and Performance Optimization
Integrating Workflows with CI/CD Pipelines
Headless Testing and Debugging
Accessibility Testing with Playwright and axe-core
Setting Up Visual Regression Testing
Testing Mobile Web Experiences
Testing Forms
Handling File Uploads and Downloads
Security and Authentication
Best Practices for Test Maintainability
Real-World Project - Testing an E-Commerce Website
Appendix A: Streamlining Playwright in Modern Development Workflows
Appendix B: References and Resources



