How can I pass all the required capabilities as a single command by setting environment variables? Is it possible to pass the capabilities as a file?

How can I pass all the required capabilities as a single command by setting environment variables? Is it possible to pass the capabilities as a file?

Hi Miro,

Yes, this is possible, as you can add all the capabilities in a .JSON file and add set its path as environment variable:

export LT_CAPABILITY_PATH = "path of the file"

To declare additional Desired Capabilities:

"Chrome@90.0:Windows 11" : {
"network" : true,
"visual" : true,
"resolution": "1366x768",
}

//Chrome@90.0:Windows 11 represents browser alias.