我有Open Souce设置来针对Firefox和Chrome测试我的代码,现在我想在启用了一些标记的情况下测试它,例如Firefox为layout.css.grid.enabled = true
,Chrome为--enable-experimental-web-platform-features
。
如何配置Sauce呢?
答案 0 :(得分:0)
您是否在自定义启动器中尝试过此配置?
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome',
flags: ['--disable-web-security']
}
标志是你想要的任何东西。
答案 1 :(得分:0)
这对我有用:
{
browserName: "chrome",
// ...
'goog:chromeOptions': {
args: ['--enable-experimental-web-platform-features']
}
}