How to get session info in LambdaTest?

How to get session info in LambdaTest?

Hello Alex-walker,

Here’s how you can get session info:

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

This prints the entire JSON response on the console. You can use the data in this variable even outside the test script if you save it appropriately.