page.set('content') doesn't work with dynamic content in phantomjs

后端 未结 3 481
闹比i
闹比i 2021-01-22 11:28

I tried to use phantomjs for screen capturing my page with node-phantom bridge. Here is what I\'m trying:

 var phantom = require(\'node-phantom\');

 phantom.cre         


        
3条回答
  •  失恋的感觉
    2021-01-22 12:26

    JavaScript code needs some time to execute. Try to have a delay between setting the page content and calling render.

提交回复
热议问题