How can I download a HAR file of network logs in Automation testing?

How can I download a HAR file of network logs in Automation testing ?

You can pass "network.har":true, along with network:true to get a HAR file of the captured network logs for your automation test.