How to retrieve the LambdaTest session ID in Playwright from the code itself?
Hello Alex-walker,
You can pass this code line in your script:
let response = JSON.parse(await page.evaluate(_ => {}, `lambdatest_action: ${JSON.stringify({ action: 'getTestDetails' })}`))
console.log(response);