How can I get the session details of my Tests?

How can I get the session details of my Tests?

Hello Rhian-lewis,

You can get the session details by adding the code below to each of your test files:

let response = JSON.parse(await page.evaluate(_ => {}, `lambdatest_action: ${JSON.stringify({ action: 'getTestDetails' })}`))
console.log(response);

Reference: