Overview
Customer Support may ask for a HAR file when there is a reported issue that the team cannot reproduce from their end. The HAR file is required for troubleshooting the issue.
Solution
To generate a HAR (HTTP Archive) file, which records all the web resources loaded by a browser for a specific URL, follow the instructions below based on the web browser you are using:
If you are using Google Chrome:
- Open Google Chrome and navigate to the page where you are experiencing the issue.
- Right-click anywhere on the page and select "Inspect" to open the Developer Tools.
- Go to the "Network" tab.
- Ensure that the record button (the red circle at the top left of the Network tab) is enabled. If it is grayed out, click on it to start recording.
- Check the "Preserve log" option in the Network tab to ensure the recording continues even if a new tab is opened.
- Replicate the issue.
- Right-click anywhere in the grid of network requests in the "Network" tab and select "Save all as HAR with content." Ensure that you gather the data for the most relevant browser tab if multiple tabs open up during the replication.
- Save the file to your preferred location.
If you are using Mozilla Firefox:
- Open Firefox and navigate to the page you want to capture.
- Right-click and select "Inspect Element" to open the Developer Tools.
- Click the "Network" tab.
- Enable "Persist Logs" to ensure that the network recording continues even if a new tab is opened.
- Replicate the issue.
- Right-click within the network requests list in the "Network" tab and select "Save All As HAR." Ensure that you gather the data for the most relevant browser tab if multiple tabs open up during the replication.
- Choose where you would like to save the file.
If you are using Microsoft Edge:
- Open Edge and go to the desired page.
- Press F12 or right-click and choose "Inspect" to open the Developer Tools.
- Click the "Network" tab.
- Ensure that recording is enabled (the red circle should be on).
- Enable the "Preserve log" option so that the recording continues even if a new tab is opened.
- Replicate the issue.
- Right-click anywhere in the grid of network requests in the "Network" tab and select "Save all as HAR with content." Ensure that you gather the data for the most relevant browser tab if multiple tabs open up during the replication.
- Save the HAR file as needed.
After generating the HAR file, provide it to the support team for further assistance.
Summary
In this article, we have provided a step-by-step guide on how to generate a HAR file in Google Chrome, Mozilla Firefox, and Microsoft Edge.
FAQ
- What is a HAR file?
A HAR (HTTP Archive) file records all the web resources loaded by a browser for a specific URL. It can be used to troubleshoot issues with web pages. - How can I generate a HAR file in Google Chrome?
Open the Developer Tools by right-clicking on the page and selecting "Inspect." Go to the "Network" tab, ensure that the record button is enabled, and refresh the page. Once the page has loaded, right-click in the grid of network requests and select "Save all as HAR with content." - What should I do with the HAR file once it's generated?
Once you have generated the HAR file, provide it to the support team for further assistance in troubleshooting your issue.
Priyanka Bhotika
Comments