New answers tagged

0

Don't use arrow function, try using below, this worked for me: After(async function (scenario){ if(scenario.result.status=== Status.FAILED){ const screenShotFail= await browser.takeScreenshot(); this.attach(screenShotFail, "image/png"); } })


Top 50 recent answers are included