Mastering Playwright | Skip Login using Storage State | QA Automation Alchemist

Published: 04 February 2024
on channel: QA Automation Alchemist
3,311
39

This video will explain about how to save authenticate state and use it in other tests without logging in explicitly.

Reference:
https://playwright.dev/docs/codegen
https://github.com/MukunthanML/enterp...

Example:
npx playwright codegen github.com/microsoft/playwright --save-storage=auth.json
npx playwright codegen --load-storage=auth.json github.com/microsoft/playwright