Rayrun
← Back to Discord Forum

Defining unique configuration properties

I want to introduce my own configuration properties in my project that I'd use across my test files. Is there a way to do this in playwright.config.ts, e.g. in the use section? I'd do something like this:

const defaultConfig: PlaywrightTestConfig = defineConfig({ use: } myConfig: { prop1: val1, prop2: val2, prop3: val3, }, }

If it is not possible in playwright.config.ts, what is the suggested way of achieving this? Many thanks

This thread is trying to answer question "Is there a way to introduce custom configuration properties in the 'use' section of the playwright.config.ts file, and if not, what are the alternative solutions?"

1 reply

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.