lecture 10 of 160 completed

Configuration across environments

Selenium gives you no config file, so the structure is yours to design. Here is the shape that works.

What you'll learn

  • How to structure config when the tool gives you none
  • Where credentials belong, and where they must never go
  • Why a test must not know where it is running

Cypress has cypress.config.js. Playwright has playwright.config.ts. Selenium has nothing, because it is a library rather than a framework.

That is not a gap to complain about, it is a design decision you have to make yourself. Here is the shape most teams arrive at.

Keep every environment-specific value in one module.

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 →