Rayrun
← Back to Discord Forum

use storage state with codengen

Is there a way to use storage state when using the record new feature in the playwright test extension?

This thread is trying to answer question "How can one use storage state with the Playwright test extension's record new feature?"

3 replies
dabernathy89
dabernathy89

Same question here! I'm new to Playwright today and was hoping to use the "record at cursor" tool in VS Code, but it seems that doesn't work... if someone knows whether this is an actual missing feature or just a configuration issue, that would be good to know.

Record at cursor, to me, doesn't do what I want it to do, which is run the test up to the cursor, then start recording. That said to pull in storage state during codegen you can do npx playwright codegen --load-storage user.json

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 [email protected].