Screen shot not attaching to the extent report in TestNG hybrid Framework | Selenium Forum
B
barik.arun Posted on 22/01/2021

Hi,

   Attached is the zip file of the project. Here the screenshots are taken and stored in the specific location but not displayed in the extent report. Please look into it.


A
Ashish Thakur Replied on 23/01/2021

Do you get any error?


B
barik.arun Replied on 28/01/2021

No, I didn't get any errors. Screenshots are created in the specific folder, but not attaching to the HTML report.


A
Ashish Thakur Replied on 28/01/2021

Debug your program

Put a breakpoint in takeScreenShot

See if control reaches there

If it reaches there and screenshot is not coming then it means there is some issue in path

If it not reaches then plz call it on failure