How do I capture network logs in HAR format with Pytest ?
Hello Tom-dale,
To capture network logs in HAR format you just need to add the capability network. har as “True” along with network"true" capability as given below:
capabilities = {
"build" : "your build name",
"name" : "your test name",
"platform" : "Windows 11",
"browserName" : "Chrome",
"version" : "103.0",
"selenium_version" : "3.13.0",
"network" : True,
"network.har" : "True"
}