lecture 14 of 160 completed

Reports, screenshots and logs

Selenium collects nothing on its own. Every piece of evidence from a failed run is something you set up deliberately.

What you'll learn

  • Why Selenium records nothing unless you write it
  • The cheapest evidence worth adding to any suite
  • Why artifacts must be uploaded, not just written

Playwright records a trace of everything. Cypress saves a screenshot and video automatically. Selenium saves nothing at all, ever, unless you write the code.

That is the trade-off for a library rather than a framework, and it means a failed run on a build server tells you only what you arranged to be told. Here is the minimum worth arranging.

A screenshot on failure. This is the highest-value thing you can add, and it is a few lines in an afterEach:

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →