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.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →