How to Playwright write or modify existing env variable at runtime

  Kiến thức lập trình

I am using Playwright with TypeScript and I have my .env file where I have a variable called [email protected]. When the test run, I needed it to change the EMAIL value into something that was changed during the runtime of the test. Like [email protected]

Is it possible and how can I do that? The officially documentation and Internet only specifies how to read from env variable but not how to actually modify it from within the test itself.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT