How do I capture network logs in HAR format with JS-Mocha?
Hi Richard,
To capture network logs in HAR format you just need to add the capability network.har as “true
” along with the capability as given below:
default:
paths:
features: '../features/single'
bootstrap: '../features/bootstrap'
context:
parameters:
lambdatest:
server: "hub.lambdatest.com"
user: LT_USERNAME
key: LT_ACCESS_KEY
capabilities:
"LT:Options": {
"platformName": "MacOS Monterey",
"network": true,
"network.har": true,
"project": "Untitled"
}
environments:
-
"browserName": "Chrome",
"browserVersion": "15.0"