尝试自动化任务,但phantomjs无法正确“打开”this网址。PhantomJS上的XmlHttpRequest异常101
该应用给出了101错误。
的误差是可重复使用此脚本
var page = new WebPage();
page.open(phantom.args[0], function(status){
console.log(status);
page.render(phantom.args[1]);
phantom.exit();
});
和运行命令phantomjs --ignore-ssl-errors=yes script.js https://notalegal.sefin.ro.gov.br/contribuinte/form.jsp\?sys\=NPJ\&formID\=\{C90B91CE-E9C3-46B2-8FED-75B7B219A3AD\}\&scrolling\=yes ~/page.png
我已经与phantomjs 1.4测试和1.6
我已经测试了zombie.js并且觉得问题在于页面上的脚本尝试使用document.captureEvents并因此死亡。 – 2012-07-15 16:34:52