嘗試自動化任務,但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