I'm using this code in chrome and firefox console
let m=$.getScript("https://html2canvas.hertzen.com/dist/html2canvas.js", function() {
html2canvas(document.querySelector("body > table.troisbords > tbody > tr > td > table > tbody > tr > td > div > blockquote > table > tbody > tr:nth-child(2) > td > form > table > tbody > tr:nth-child(4) > td:nth-child(2) > img"), {
onrendered: function(canvas) {
var myImage = canvas.toDataURL("image/png");
return myImage;
},
allowTaint: true,
taintTest: false
});
});
m.then((value) => {
console.log(value);
window.open(value);
});
but i'm getting the following
I've checked these answers:
Why is my asynchronous function returning Promise { <pending> } instead of a value?
Appreciate any help !