Why Automation? When to Automate?

Learn when test automation delivers real value, which tests make good automation candidates, and get an overview of Playwright as a modern testing framework.

Playwright Automation Module 1 Lesson 1
8 min read

What you'll learn

  • Understand when automation is worth the investment
  • Identify good and bad automation candidates
  • Explain what Playwright is and why it is popular

Manual vs. Automated Testing

Manual Testing

Human clicks through every test

8 hours
to run 500 test cases
Every single release.

Automated Testing

Script runs all tests

4 min
to run 500 test cases
Any time. No human needed.

Not every test should be automated. Compare:

AspectManual TestingAutomated Testing
SpeedSlow — a human clicks through every stepFast — runs in seconds once written
RepeatabilityProne to human error on repetitionIdentical every single run
Initial costLow — just start testingHigh — scripts must be written first
MaintenanceNone (ad-hoc)Ongoing — tests break when UI changes
Exploratory abilityExcellent — humans notice odd thingsPoor — only checks what you tell it to
Regression confidenceLow at scale — too many tests to runHigh — entire suite runs in minutes

Takeaway: automation wins on repetition and regression; humans win on exploration and judgement.


When to Automate


Quick Check

Question 1 of 10 correct

Which scenario is the STRONGEST case for automation?


When NOT to Automate


What Is Playwright?

  1. 1

    Multi-browser out of the box

    Chromium, Firefox, and WebKit with zero extra config.

  2. 2

    Auto-waiting

    Playwright waits for elements to be ready before interacting. No more sleep(3000).

  3. 3

    Powerful selectors

    Find elements by role, text, label, or test ID instead of fragile CSS.

  4. 4

    Built-in tooling

    Trace viewer, codegen recorder, HTML reporter, VS Code extension -- all included.


Practice: Rank Automation Candidates

Rank from best automation candidate (top) to worst (bottom).

  1. 1Exploratory testing of a brand-new feature
  2. 2Login flow regression test run on every PR
  3. 3Visual review of marketing landing page redesign
  4. 4Checkout flow tested across Chrome, Firefox, and Safari

Knowledge Check

Question 1 of 20 correct

What is the biggest advantage of automated tests over manual tests?