How do I capture network logs in HAR format?

How do I capture network logs in HAR format while using PHP Codeception?

Hi Toby,

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

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver:
    config:
        WebDriver:
          host: 'LT_USERNAME:LT_ACCESS_KEY@hub.lambdatest.com'
          port: 80
          url: 'https://lambdatest.github.io/'
          browser: chrome
          capabilities: 
                        "browserName": "Chrome",
                        "browserVersion": "15.0",
                        "LT:Options": {
                                "platformName": "MacOS Monterey",
                                "network": true,
                                "network.har": true,
                                "project": "Untitled"
                        }