Web Automation Testing Using Playwright
eBook - ePub

Web Automation Testing Using Playwright

End-to-end, API, accessibility, and visual testing using Playwright (English Edition)

  1. 328 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Web Automation Testing Using Playwright

End-to-end, API, accessibility, and visual testing using Playwright (English Edition)

About this book

Description
The purpose of the book Web Automation Testing Using Playwright is to teach you how to use Playwright to automate your web testing. Playwright, a powerful automation tool developed by Microsoft, is a modern web automation framework that is fast, reliable, and easy to use.This book begins by introducing automation testing, its benefits, and Playwright, covering setup, scripting, and Playwright's architecture. It guides you through creating frameworks, selector strategies, and handling complex web elements like shadow DOM and iframes. Explore Playwright features such as Codegen, Inspector, UI mode, debugging with Trace Viewer, and generating detailed reports. Learn advanced techniques like building frameworks using Page Object Model (POM), integrating Cucumber/BDD, API testing, HTTP request interception, and accessibility and visual testing. Additionally, the book explores test execution in CI/CD tools, parallel testing, AI-driven test automation, leveraging generative AI like ChatGPT, and future trends in test automation.By the end of this book, you will be a web automation expert, writing efficient tests that validate web app functionality. Automate complex scenarios, handle edge cases, and leverage AI for intelligent testing.

Key Features
? Master the intricacies of Playwright's architecture, features, and best practices.
? Learn how to apply Playwright to automate real-world web applications.
? Tips, tricks, and best practices for efficient and effective web automation using Playwright.

What you will learn
? Writing testing scripts for end-to-end, functional, API, accessibility, and visual tests with Playwright.
? Mastering UI elements like alerts, tabs, drag-and-drop, iframes, and shadow DOM handling.
? Debugging effectively using Playwright features like Codegen, Inspector, UI mode, and Trace Viewer.
? Implementing Cucumber/BDD, Page Object Model (POM), and CI/CD pipeline integration with Playwright.
? Leveraging AI tools for test automation, including script creation, debugging, and understanding generative AI like ChatGPT.

Who this book is for
The target audience for this book is test automation engineers, web developers, product owners, and anyone who wants to learn about tool Playwright and test their application from scratch to the end of the applications.

Table of Contents
1. Introduction to Playwright
2. Getting Started with Playwright
3. Locator Strategies and Handling Various Actions
4. Handling Complex Elements
5. Exploring Playwright Tools in Depth
6. Reporter, Assertion, Annotations, and Hooks in Playwright
7. Page Object Model Pattern in Playwright
8. Playwright Cucumber/BDD Framework Integration
9. API Testing Using Playwright, Authentication, and Session Storage
10. Accessibility Testing with Playwright
11. Visual Testing with Playwright
12. Integrate Playwright Tests with CI/CD and Run Tests in Parallel
13. Using AI with Playwright for E2E Testing

Information

Table of contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. About the Reviewer
  7. Acknowledgement
  8. Preface
  9. Table of Contents
  10. 1. Introduction to Playwright
  11. 2. Getting Started with Playwright
  12. 3. Locator Strategies and Handling Various Actions
  13. 4. Handling Complex Elements
  14. 5. Exploring Playwright Tools in Depth
  15. 6. Reporter, Assertion, Annotations, and Hooks in Playwright
  16. 7. Page Object Model Pattern in Playwright
  17. 8. Playwright Cucumber/BDD Framework Integration
  18. 9. API Testing Using Playwright, Authentication, and Session Storage
  19. 10. Accessibility Testing with Playwright
  20. 11. Visual Testing with Playwright
  21. 12. Integrate Playwright Tests with CI/CD and Run Tests in Parallel
  22. 13. Using AI with Playwright for E2E Testing
  23. Index

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Web Automation Testing Using Playwright by Kailash Pathak in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over 1.5 million books available in our catalogue for you to explore.