To generate a HAR file on Google Chrome or Firefox browser, follow these steps:
- Open the browser you want to use and navigate to the webpage you want to capture the network traffic for.
- Open the developer tools in your browser. This can typically be done by pressing F12 or Ctrl+Shift+I on Windows or Command+Option+I on a Mac or Right-Click on “Inspect”.
- In the developer tools, go to the Network tab.
- Make sure the Preserve log checkbox is checked.
- Reload the webpage to capture all the network traffic.
- After the page has loaded, reproduce the issue and once the task is completed, right-click on any of the requests in the Network tab and select "Save all as HAR with content".
- Choose a location to save the HAR file and click Save.