When troubleshooting issues with an Applitools product, you may have someone request a HAR file so that they can understand what network requests are sent by your browser.
What is a HAR file?
A HAR (HTTP Archive) file is a JSON-formatted file that records the network traffic between a web browser and a website. It captures detailed information about each request and response, including headers, body content, cookies, timing information, and other metadata. HAR files are commonly used for diagnosing performance issues, troubleshooting problems, and analyzing web application behavior.
Generating a HAR file in Chrome
- Navigate to the page that is causing an issue.
- Press CTRL+Shift+J on Windows, or CMD+Shift+J on OSX to open Chrome DevTools.
- Click on the "Network" tab.
- Click the checkbox next to "Preserve Log".
- Perform the actions on the page that demonstrate the issue that you're experiencing.
- Click the download icon.
- Save your HAR file and send it to the requester.
Generating a HAR file in Firefox
- Navigate to the page that is causing an issue.
- Press CTRL+Shift+E on Windows, or CMD+Shift+E on OSX to open the network inspector tab.
- Perform the actions on the page that demonstrate the issue that you're experiencing.
- Click the gear icon in the upper right hand corner of the "Developer Tools" pane and click "Save All As HAR".
- Save your HAR file and send it to the requester.
Comments
0 comments
Article is closed for comments.