Rayrun
← Back to Discord Forum

HAR recording API

kobenguyentposted in #help-playwright
Open in Discord

Hi all, i‘d like to know if there is any api for har recording that I could use to integrate with custom runner? Thanks in advance!

This thread is trying to answer question "Is there any API for HAR recording that can be used with a custom runner?"

6 replies

That‘s kinda strange, I didn’t see the recorded har file after the run using custom runner.

anyone got any working exmaple regarding the HAR recording?

this only works when using @playwright/test https://playwright.dev/docs/mock#recording-a-har-file

Screenshot_2023-11-07_at_13.02.40.png

calling this from custom runner doesn't generate the HAR files, tho.

My bad. I forgot to call the .close() at the end of the tests.

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 luc@ray.run.