I have a cucumber project. If I want to take screenshots I want to embed it using the following. scenario.embed(((TakesScreenshot)driver).getScreenshotAs(OutputType.
scenario.embed(((TakesScreenshot)driver).getScreenshotAs(OutputType.