如何在selenium soda test中运行chrome
当我设置browser: "chrome"的时候,它还是会打开火狐浏览器。
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"
});发布于 2013-06-14 09:43:28
根据文档,请使用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/。事实上,我提供的例子来自他们的网站。另外,你可以尝试一下*chrome或者*google,因为它们看起来像是.
https://stackoverflow.com/questions/16751578
复制相似问题