How do I capture network logs in HAR format?
Hi Devan,
To capture network logs in HAR format, you just need to add the capability network as true 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"
Ref: NightWatch JS Tutorial: Complete guide on NightWatch JS Automation Testing