casper.wait(10000,function(){}),等待了10s后发现获取当前页面的地址的话,还是about:blank
但是我按照上面说的加上casperjs my.js --ignore-ssl-errors=yes 和 --ssl-protocol=any都不行,最后看里面有人也碰到了此情况。
casperjs --help后发现,根本就不支持--ignore-ssl-errors,--ssl-protocol这两个option,phantomjs里面才有
感觉是不是1.1.0-beta3这个版本的话,加上这两个参数也无效。因为人家毕竟还叫beta嘛,如果想解决此问题,建议可以考虑其他centeros下安装casperjs来运行你的程序或者直接用phantomjs开发。
phantomjs --ignore-ssl-errors=true --ssl-protocol=any phantomjs-csdn.js