Rayrun
← Back to Discord Forum

routeFromHAR not recording form network request

Code sample in image + the actual form, no API is being used, just Netlify Forms. Playwright doesn't seem to capture the network request

any sort of ideas would be appreciated!

image.png
image.png

This thread is trying to answer question "Why is Playwright not capturing the network request in a form?"

2 replies

If you want to listen for the form submission request, you can use Playwright’s page.waitForRequest or page.waitForResponse functions.

page.routeFromHAR function is used to intercept network requests from a HAR (HTTP Archive) file and mock responses for those requests. This is generally not used to capture or record network requests

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