Skip to content

Commit 01a5c1a

Browse files
committed
fixes #35
1 parent 365ec7e commit 01a5c1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ExtentReports/MediaEntityBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static MediaEntityBuilder CreateScreenCaptureFromPath(string path, string
2626
if (string.IsNullOrEmpty(path))
2727
throw new IOException("ScreenCapture path cannot be null or empty.");
2828

29-
return CreateScreenCapture(path, null, false);
29+
return CreateScreenCapture(path, title, false);
3030
}
3131

3232
/// <summary>

ExtentReports/Model/Media.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Media
1616
public long FileSize { get; set; }
1717
public string Name { get; set; }
1818
public string Description { get; set; }
19-
public string Title { get; set; }
19+
public string Title { get; set; } = string.Empty;
2020
public string Base64String { get; set; }
2121
public int Sequence { get; private set; } = Interlocked.Increment(ref _seq);
2222

ExtentReports/Model/ScreenCapture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public string Source
1616
return "<a href='" + Base64StringDataType + Base64String + "' data-featherlight='image'><span class='label grey badge white-text text-white'>base64-img</span></a>";
1717
}
1818

19-
return "<img class='r-img' onerror='this.style.display=\"none\"' data-featherlight='" + Path + "' src='" + Path + "' data-src='" + Path + "'>";
19+
return "<img class='r-img' title='" + Title + "' onerror='this.style.display=\"none\"' data-featherlight='" + Path + "' src='" + Path + "' data-src='" + Path + "'>";
2020
}
2121
}
2222

0 commit comments

Comments
 (0)