The instructions are the same for a MAC computer or a Windows computer. Find below a brief animation with the steps to retrieve a HAR file in Chrome.
For any issues generating this file, see this article from Google's Help Center: Capture web session traffic.
Reference and for other browsers:
Just here to browse knowledge?
This might help!