Hello,
This are my desired capabilities in wdio.conf.js
capabilities: { wdaSession: { capabilities: { platformName: 'windows', 'appium:eventTimings': true, 'appium:deviceName': 'WindowsPC', 'appium:app': '***!App', } } },
In the test I am retrieving capabilities and write them to JSON file:
let caps = browser.wdaSession.capabilities;
fs.writeFileSync("./rep/sessionCap.json", JSON.stringify(caps));
The info written to the file is without an events key in the response object (timings), looking like this:
{"platformName":"windows","eventTimings":true,"deviceName":"WindowsPC","app":"***!App","sessionId":"9384b6b9"}
Appium version:1.16.0
WinAppDriver version: 1.2
JavaScript, Windows Desktop app