How do I capture Network logs in HAR format using Jest?
Hi Tim!
To capture Network logs in HAR format using Jest framework, you need to add the capability network.har
as “true” along with network "true"
capability in your test scripts.
$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"
)
);