Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

OutputType.BASE64 screenshots are not opening in Extent Report html #1099

Open
noviceuser26 opened this issue Jul 17, 2018 · 1 comment
Open

Comments

@noviceuser26
Copy link

OutputType.BASE64 screenshots are not opening in Extent Report html

I am using the following code to take the Base64 screenshots and attach to ExtentTest (Version 3.1.5)

ExtentTest childTest;
childTest.addScreenCaptureFromPath(base64conversion(driver));

public String base64conversion(WebDriver driver) throws Exception {
TakesScreenshot newScreen = (TakesScreenshot) driver;
String scnShot = newScreen.getScreenshotAs(OutputType.BASE64);
return "data:image/jpg;base64, " + scnShot ;

}

Screenshots are getting attached to the Extent Report but when i click them in the html , they are not getting displayed . Can someone help me out with this issue .

image

@vali92
Copy link

vali92 commented Aug 22, 2018

Can you please check on other browser? I think this is only on Firefox!

Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants