Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Automated Testing with Playwright
  • Table Of Contents Toc
Hands-On Automated Testing with Playwright

Hands-On Automated Testing with Playwright

By : Faraz K. Kelhini, Butch Mayhew
close
close
Hands-On Automated Testing with Playwright

Hands-On Automated Testing with Playwright

By: Faraz K. Kelhini, Butch Mayhew

Overview of this book

Hands-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
Table of Contents (22 chapters)
close
close
20
Other Books You May Enjoy
21
Index

Quick Setup Refresher

Welcome to your journey with Playwright! This book will guide you through mastering this versatile tool for web testing and automation.

One of Playwright’s biggest strengths is its ability to automate browsers such as Chromium, Firefox, and WebKit with a single API, which means you can test across multiple browsers effortlessly. Another standout feature is its auto-wait mechanism, which helps reduce flaky tests by waiting for elements to be ready before interacting with them. Plus, it supports multiple languages, such as JavaScript, Python, and C#, so teams can use it in their preferred tech stack.

Before we dive into the exciting features, let’s take a few minutes to get everything set up properly. Even if you’ve used Playwright before, this chapter will make sure we’re all starting on the same page.

In this chapter, we’ll begin by installing Playwright and its dependencies to set up our development environment. Then, we’ll explore the difference between Playwright Test and the Playwright Library, which will help you understand when to use each.

Next, you’ll get hands-on experience by writing and running your first test. We’ll also cover how to configure your test environments for optimal productivity and delve into the basics of Playwright’s test runner to give you a solid foundation.

By the end of this chapter, you’ll have a fully functional Playwright setup, understand the key components, and be ready to start writing and running tests with confidence.

These are the key topics we’ll explore:

  • Installing Playwright and dependencies
  • Understanding the difference between Playwright Test and Playwright Library
  • Writing and running your first test
  • Configuring test environments
  • Understanding Playwright test runner basics

Let’s get started!

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Automated Testing with Playwright
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon