brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 285 forks source link

can i send ajax request in the page to take screenshot? #109

Open VincentWang1009 opened 9 years ago

VincentWang1009 commented 9 years ago

I have a js file

webshot(fileContent,'test.png',{siteType:'html', renderDelay: 5000},function(err){
    console.log('finish');
});

fileContent is the file that I want to take screenshot,In this html I have a ajax request ($.ajax) ,but when I run this script, it seems something error occur (both success callback and fail callback did not run).when I run that page in a real browser,it works fine.