我从GitHub下载了this vagrant selenium grid安装程序,并按原样试用。我可以让我的量角器测试与默认的firefox实例一起工作,但是当我尝试在chrome实例上测试时,我得到了错误。当我尝试用chrome运行测试时,Here is the log输出来自节点vm的node.log文件。
我已经尝试使用openjdk 6和7,并尝试了最新的chromedriver (64位)以及chromedriver 2.9和2.8,并尝试了最新版本的selenium-sever standalone jar文件。
我现在用的是量角器0.23.1。下面是我的量角器配置文件:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
chromeOnly: false,
splitTestsBetweenCapabilities: true,
specs: ['./e2e/**/*pec.js'],
multiCapabilities: [{
'browserName': 'firefox',
'platform': 'LINUX',
'maxInstances': 2,
}, {
'browserName': 'chrome',
'platform': 'ANY',
'maxInstances': 2
}],
jasmineNodeOpts: {
showColors: true,
isVerbose: true,
includeStackTrace: true,
defaultTimeoutInterval: 30000
}
};我还尝试将下面的标志添加到conf/upstart/selenium-node.conf文件中的脚本中,但chrome仍然无法启动(与上面日志中的消息相同)。
-browser "browserName=chrome" -Dwebdriver.chrome.driver="/usr/bin/chromedriver" 有没有人在chrome上运行这个设置?或者您能看到这里的问题所在吗?任何建议都可能会有所帮助。
发布于 2014-08-27 17:25:39
尝试opening an issue in that selen repository,因为提供的流浪汉似乎不能开箱即用。
总体而言,您的目标似乎是运行selenium+chrome无头。
看看my answer here吧。
https://stackoverflow.com/questions/24071254
复制相似问题