SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner

时间:2016-03-02 10:46:54

标签: node.js firefox casperjs xulrunner slimerjs

everyone!

When I trying to run one test in casper: casperjs --engine=slimerjs test.js

and got this msg

SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner

XulRunner, Firefox is installed. I'm using using Mac OS.

1 个答案:

答案 0 :(得分:0)

解决方案是:

  1. 卸载当前的slimerjs brew uninstall slimerjs
  2. 为git clone mkdir ~/forked && cd $_
  3. 创建一个目录
  4. clone slimerjs repo git clone https://github.com/laurentj/slimerjs.git
  5. 导出到路径export PATH=$PATH:~/forked/slimerjs/src
  6. 和下次重新启动终端,因为对我来说,在我重新启动之前它不起作用。

    通过输入slimerjs -v

    来检查我们

    每个人的幸福。