Closed sivadeepti closed 7 years ago
nothing else.
Maybe problem with permissions access to the file?!
Try using another file in another folder.
For my case im using as filepath $"..\\..\\{BaseConfiguration.ScreenShotFolder}\\{Path.GetFileName(DriverContext.ScreenshotFilePath)}"
and it works fine. Absolute path also works fine.
Yeah problem solved.
Used relative paths in the code. AddScreenCaptureFromPath takes relative path (relative to Screenshots folder wherever you save in your system)
I am trying to attach images to my report in my project.
Code:
test.AddScreenCaptureFromPath(@"C:\Users\Public\Pictures\Sample Pictures\Desert.jpeg", "Snapshot below:");
where test is an instance of Extent test.
Please let me know if am missing any thing.