Recording HAR

Learn how to record HAR files in the browser.

You can record the network of your application using your browser’s DevTools. Once recorded, you can import the *.har file in your code to generate request handlers from a network archive.

Below, you can find detailed instructions on how to record HAR files in all of the modern browsers.

Chrome

  1. Open the DevTools (⌘ + ⌥ + I on MacOS; Ctrl + Shift + I on Windows/Linux ⌘ + ⌥ + I on MacOS; Ctrl + Shift + I on Windows/Linux);
  2. Click on the “Network” tab in the DevTools;
  3. Click the (Export HAR…) icon;
  4. Choose where to save the HAR file.

Firefox

  1. Open the Dev Tools (⌘ + ⌥ + I on MacOS; Ctrl + Shift + I on Windows/Linux);
  2. Click on the ”⇅ Network” tab in the Dev Tools;
  3. Click on the icon next to the throttling settings;
  4. Choose “Save all as HAR”;
  5. Choose where to save the HAR file.

Safari

  1. Open the Dev Tools (⌘ + ⌥ + I);
  2. Click on the ”⇅ Network” tab in the Dev Tools;
  3. Click on the Export button;
  4. Choose where to save the HAR file.