How do I capture Network logs in HAR format with PHPUnit?

How do I capture Network logs in HAR format with PHPUnit?

Hi Tim!

To capture network logs in HAR format with PHPUnit, you will need to add the capability network.har as “true” and network as “true” capability as given below.

$capability = array(
        "browserName" => "Chrome",
        "browserVersion" => "15.0",
        "LT:Options" => array(
                "username" => "LT_USERNAME",
                "accessKey" => "LT_ACCESS_KEY",
                "platformName" => "MacOS Monterey",
                "network" => true,
                "network.har" => true,
                "project" => "Untitled"
        )
);