哪个版本的CasperJS与PhantomJS兼容? [英] Which version of CasperJS is working well with PhantomJS?

查看:121
本文介绍了哪个版本的CasperJS与PhantomJS兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

但是,当我们每个刚接触CasperJS或Phantom的人时,都会发生这种情况.他们开始结合最新版本并尝试执行教程(来自过时的资源)>>结果是. ..很多地方都有错误.

But the cases often occurred when each of us who new to CasperJS or Phantom.... they start to combine both latest version and try to execute the tutorial (from the old-out-dated resource) >> Result is... error on many parts.

因此,要克服此问题. 我希望关于这两个版本的一些注释能够并排运行. 例如

Thus, to overcome this matter. I wish there's some notes about both versions that workings well side-by-side. For instance

casperJS 1.0.4和phantomJS 1.8.2 >>不是一个好选择, 因为this.getElementsInfo()的功能在代码内无法正常工作.

casperJS 1.0.4 and phantomJS 1.8.2 >> not a good choice, because function of this.getElementsInfo() will not working well inside the code.

推荐答案

  • CasperJS 1.1-beta3与PhantomJS 1.9.0-1.9.8兼容.
  • 来自git的最新CasperJS可以很好地与PhantomJS 1.9.0-2.0.0.
  • 避免 PhantomJS 1.9.8,如果您需要干净的输出.
  • 我建议同时安装多个版本:2.0.0、1.9.8和1.9.7作为不同的可执行文件.然后,您可以在调用CasperJS之前,在Windows上使用set PHANTOMJS_EXECUTABLE=myphantomjs或在Linux上使用export PHANTOMJS_EXECUTABLE=myphantomjs轻松地在它们之间进行切换.我倾向于到处都有可执行文件phantomjs200,phantomjs198和phantomjs197.
    • CasperJS 1.1-beta3 works well with PhantomJS 1.9.0 - 1.9.8.
    • Newest CasperJS from git works well with PhantomJS 1.9.0 - 2.0.0.
    • Avoid PhantomJS 1.9.8 if you need clean output.
    • I recommend to have multiple versions installed: 2.0.0, 1.9.8 and 1.9.7 in parallel as different executables. You can then use set PHANTOMJS_EXECUTABLE=myphantomjs on windows or export PHANTOMJS_EXECUTABLE=myphantomjs on linux to change between them easily just before calling CasperJS. I tend to have the executables phantomjs200, phantomjs198 and phantomjs197 lying around.
    • 这篇关于哪个版本的CasperJS与PhantomJS兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆