Skip to content
masterclass Buddy

Playwright · Function

defineConfig

Playwright's use configuration sets browser and context options for tests. It supports navigation, authentication state, emulation, network behavior, recording, and other test settings.

Last updated

Syntax

export default defineConfig({ use: { /* options */ } });

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • defineConfig
  • test.use
  • projects
  • baseURL
  • storageState
  • screenshot
  • video
  • trace

Source: Configuration (use) | Playwright. Checked 2026-11-03.