我已经安装phantomjs全球npm install -g phantomjs
错误运行cucumberjs英尺时硒,phantomjs,webdriverio
入门硒与java -jar selenium-standalone-2.52.0.jar
配置World
对象cucumberjs正确这样的:
var options = {
//desiredCapabilities: { browserName: 'internet explorer' }, // WORK
//desiredCapabilities: { browserName: 'chrome' }, // WORK
desiredCapabilities: { browserName: 'phantomjs' }, // NOT WORK
waitforTimeout : 2000,
host: '127.0.0.1',
port: 4444
};
this.browser = webdriverio.remote(options);
它与Chrome & IE一起工作,但幻灯片失败。
这是我从硒控制台得到了错误:
错误 - org.apache.commons.exec.ExecuteException:执行失败 (出口值:-559038737由java.io.IOException异常引起的。不能运行 程序 “C:\ Program Files文件(x86)的\的NodeJS \ phantomjs”(目录 “”): CreateProcess的错误= 193%1不是有效的Win32应用程序)
C:\Program Files (x86)\nodejs\phantomjs
存在。
我是否错过幻像/硒的任何配置?