I've got Playwright test written using TypeScript and I would like to use variables from .env in my test file, how can I do that?
I've got Playwright test written using TypeScript and I would like to use variables from .env in my test file, how can I do that?
You can put require('dotenv').config() inside your playwright.config.ts and then it will work, see here: