How do I capture Network logs in HAR format in JUnit framework?

How do I capture Network logs in HAR format in JUnit framework?

Hi Devan!

To capture the Network logs (HAR format) in JUnit, you need to use the below capability in your test scripts.

ltOptions.put("network", true);

You can also download the HAR logs from the LambdaTest Automation Dashboard.