- capture screenshot by using base64, although it attaches screenshot successfully but while zooming , it doesn’t show. refer screenshot
-
Code:
public static String captureScreenAsBase64(WebDriver driver, String screenshotName) throws IOException
{
TakesScreenshot newScreen = (TakesScreenshot) driver;
String scnShot = newScreen.getScreenshotAs(OutputType.BASE64);
return "data:image/jpg;base64, " + scnShot ;
}
Can you please mention the version of your extent report being used ?
You should put the html file’s path in the browser
for exp : C:/Users/username/…