how to retain multiple screenshot for one cucumber step? I need all screenshots for reporting purpose
const data18 = await driver.takeScreenshot()
const image18 = Buffer.from(data18, 'base64');
await world.attach(image18, 'image/png');
Using above code multiple time in same cucumber step is not retaining all screenshots but only the last or latest screenshot.