Possible libraries i can use to take screenshot of div

I have tried using screenshot using html2canvas library.
I have also tried using vue-html2canvas(https://www.npmjs.com/package/vue-html2canvas) library.

They are not picking up images in the screenshot. what other options can i use to take screenshots of div.

Here is what i have tried up-till now.

Hello @sidra, did you find any solution for your issue? I am facing the same problem.