when i used “File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);”, it only show the base64 string in the report. how can i show the screenshot in every test step??
What is the reference of the driver instance ?
I think below should work
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File(“c::\tmp\tmp.png”));
Does the second like saves the file ?