Leanpub Header

Skip to main content

Web Test Automation in Action: Volume 1

Hands-On Exercises with Selenium WebDriver and Playwright

Web Test Automation in Action: Volume 1
This book is 100% completeLast updated on 2026-10-27

Unlock the power of web test automation with hands-on exercises designed to bridge the gap between theory and practice. This book empowers software professionals to master Selenium WebDriver and Playwright, building robust E2E testing skills through 14 practical lessons. Perfect for those ready to elevate their test automation skills with real-world tools and techniques!

Minimum price

$20.00

$30.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

Buying multiple copies for your team? See below for a discount!

PDF
EPUB
WEB
APP
206
Pages
24,069Words
About

About

About the Book

Test automation, especially End-to-End (UI) test automation, is the foundation of Agile and DevOps. Yet, E2E test automation courses are rarely offered at universities, and many companies don’t seek external training or coaching. This gap is a common reason why most E2E test automation efforts fail.

The best way to learn web test automation is by doing. This book offers a practical, fast, and effective approach for motivated software professionals to master web test automation using two leading automation frameworks: Selenium WebDriver and Playwright. Through 14 carefully crafted exercises, you’ll learn:

  • Web Automation Concepts
  • Automated Test Design Techniques
  • Selenium and Playwright Test Syntax
  • Best Practices for Developing and Debugging Test Scripts Efficiently

Ideal for those seeking hands-on exercise to sharpen their test automation skills!

Share this book

Team Discounts

Team Discounts

Get a team discount on this book!

  • Up to 3 members

    Minimum price
    $47.00
    Suggested price
    $72.00
  • Up to 5 members

    Minimum price
    $76.00
    Suggested price
    $116
  • Up to 10 members

    Minimum price
    $133
    Suggested price
    $203
  • Up to 15 members

    Minimum price
    $190
    Suggested price
    $290
  • Up to 25 members

    Minimum price
    $285
    Suggested price
    $435

Author

About the Author

Zhimin Zhan

Zhimin Zhan is the founder and principal agile testing coach of AgileWay Pty Ltd, Australia. As an advisor and coach, he helps organisations implement test automation using Continuous Testing with open technologies, such as Selenium WebDriver / Appium. Zhimin is the creator of TestWise, the next-generation functional testing tool that supports functional test refactorings, and BuildWise, an international award-winning Continuous Testing Server. Zhimin is a frequent speaker and author of 14 books on software testing and programming. He shares his test automation and CI experience on Substack and Medium.

Contents

Table of Contents

Preface

  1. Why this book?
  2. What’s unique about this book?
  3. Who should read this book?
  4. How to read this book?
  5. Send us feedback

Hello Web Test Automation

  1. Learning Objectives
  2. Tasks
  3. FAQ

Web Test Automation Simplified

  1. Learning Objectives
  2. Web Basics
  3. Web Testing means …
  4. Web Test Automation means …
  5. How to Find an Element
  6. Behind a web page is HTML
  7. Tasks
  8. Summary

Introduction to Web Automation Frameworks

  1. Learning Objectives
  2. Selenium WebDriver
  3. Selenium WebDriver’s Locators
  4. Run Selenium Scripts in TestWise
  5. Playwright
  6. FAQ

User Sign in OK Test

  1. Exercise #04
  2. Learning Objectives
  3. Tasks
  4. Full Test Script
  5. Common Issues
  6. FAQ

Multi-Login Tests

  1. Exercise 05
  2. Learning Objectives
  3. Test Design
  4. Learn RSpec in under a minute
  5. The test syntax framework in @playwright/test
  6. Tasks

Alternative Login Tests

  1. Exercise 06
  2. Learning Objectives
  3. Test Design
  4. TestWise Productivity Tips (Selenium)
  5. Visual Studio Code (Playwright)
  6. Test Script

Test Execution Side Effects

  1. Exercise 07
  2. Learning Objectives
  3. Tasks
  4. Playwright
  5. Test Scripts
  6. FAQ

Select One-way Flight

  1. Exercise 08
  2. Learning Objectives
  3. Test Design
  4. Tasks
  5. Playwright Test
  6. Test Script

Select Return Flight

  1. Exercise 09
  2. Learning Objectives
  3. Test Design
  4. Tasks
  5. Test Script

Enter Passenger Name

  1. Exercise 10
  2. Learning Objectives
  3. Test Design
  4. Knowledge Point: Assertion
  5. Tasks
  6. Assertions in Playwright Test
  7. Test Scripts

Various ways of execution test scripts

  1. Exercise 11
  2. Learning Objectives
  3. Tasks
  4. Knowledge Point: Various Ways to Execute Tests
  5. Execute Tests in a Testing Tool
  6. Execute Tests in a Command Window or Terminal

Payment Test (AJAX)

  1. Exercise 12
  2. Learning Objectives
  3. Test Design
  4. Tasks
  5. Playwright
  6. Test Scripts

Sony Playstation Login Test

  1. Exercise 13
  2. Learning Objectives
  3. Tasks
  4. Test Script

Testing Page with iFrames

  1. Exercise 14
  2. Learning Objectives
  3. Tasks
  4. Handle Frames in Playwright
  5. Test Script

Afterword

Appendix 1 Test Execution Setup

  1. Selenium WebDriver
  2. Playwright

Appendix 2 Selenium vs. Playwright

Appendix 3 Practical Advice: Open to Do Both Frameworks at Work

  1. Why does the “do both” approach work?

Resources

  1. Books
  2. Tools
  3. Blogs

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub