苏打水和铬浏览器
问题描述:
如何在硒中运行chrome soda test?苏打水和铬浏览器
当我设置browser: "chrome"
它无论如何打开Firefox。
browser = soda.createClient({
host: "localhost",
port: 4444,
url: "http://localhost:3000",
browser: "chrome"
});
此法甚至不执行:
browser = soda.createClient({
host: "localhost",
port: 4444,
url: "http://localhost:3000",
browser: "custom /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
});
答
按文档,使用googlechrome
代替chrome
var soda = require('soda');
var browser = soda.createSauceClient({
'url': 'http://yourwebsite/'
, 'username': ''
, 'access-key': ''
, 'os': 'Windows 2003'
, 'browser': 'googlechrome'
, 'max-duration': 300
});
见http://learnboost.github.io/soda/了解更多详情。事实上,我提供的例子来自他们的网站。此外,你可以尝试*铬或*谷歌,因为这似乎是supported functionality。