Rayrun
← Back to Discord Forum

Can I add header on recorder?

Currently I cannot use the recorder because I dont have rights to visit the page. To fix this I normally add a header (for manual and automated tests). Is this also possible for the recorder (via VSCode plugin) ?

This thread is trying to answer question "Can a header be added to the recorder via the VSCode plugin for Playwright?"

5 replies

maybe try adding the header in playwright.config.ts file

theres a way to do that ?

Is this what you're looking for? https://playwright.dev/docs/api/class-testoptions#test-options-extra-http-headers

(Not sure if it will have effect on the recorder, but it's worth a try)

tried but doenst seem to work. thanks tho

The Playwright team suggests to use 'record from here' in the vscode extension: https://github.com/microsoft/playwright/issues/16944#issuecomment-1233083647

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].