I am able generate the extent reports with screenshots on my local machine. But when i mail the reports to someone else, or open the html on a differant machine, the screenshots are not visible. It says that the path is invalid.
While attaching the screenshot, i am giving the path of my local machine. And it is searching the same path on other machine too. I tried zipping the html and pics in one folder too.
Please help me how to attach the screenshots into html file without local machine dependency.
I faced same issue.
Share the folder in which you are storing the screenshots with everyone and return same path in below method.
Hope this helps!
You can do this by using base64 conversion of the obtained screenshots. Use the following code in your framework and try it.