How do I capture network logs in HAR format in Serenity?

How can I capture network logs in HAR format?

Hello Macy,

To capture network logs in HAR format, you just need to add the capability network .har as “True” along with network “true” capability as given below:

DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.setCapability("platformName", "Windows 10");
            capabilities.setCapability("BrowserVersion", "100");
            capabilities.setCapability("browsername", "chrome");
            capabilities.setCapability("selenium_version","3.13.0");
            capabilities.setCapability("network",true);
            capabilities.setCapability("network.har",true);