Closed vitalets closed 3 years ago
Hi @vitalets
I assume you mean chrome options here. If you so you need to provide them through a 'goog:chromeOptions'
object.
@wswebcreation thank you!
This works:
'goog:chromeOptions': {
args: [
'--flag-switches-begin',
'--disable-features=WebRtcHideLocalIpsWithMdns',
'--flag-switches-end'
]
}
For other browsers key names will be moz:firefoxOptions
and ms:edgeOptions
.
You're welcome
Hi All for me the google chrome options work, however the firefox options do not seem to work. Can someone send me their sample log file? Below is what i used. I am basically trying to get video to autoplay when my script runs, however
Chrome options which works:
"goog:chromeOptions": { args: [ '--autoplay-policy=no-user-gesture-required' ] },
firefox options which do not work
"moz:firefoxOptions": {
args: [
// '--media.autoplay.allow-extension-background-pages=true',
'--media.autoplay.enabled.user-gestures-needed=false',
'--media.allowed-to-play.enabled=true',
'--media.autoplay.allow-extension-background-pages=true',
'--media.autoplay.allow-muted=true',
'--media.autoplay.block-webaudio=false',
'--media.autoplay.default=-0',
'--media.block-autoplay-until-in-foreground=false'
]
},
Hi All for me the google chrome options work, however the firefox options do not seem to work. Can someone send me their sample log file? Below is what i used. I am basically trying to get video to autoplay when my script runs, however
Chrome options which works:
"goog:chromeOptions": { args: [ '--autoplay-policy=no-user-gesture-required' ] },
firefox options which do not work"moz:firefoxOptions": { args: [ // '--media.autoplay.allow-extension-background-pages=true', '--media.autoplay.enabled.user-gestures-needed=false', '--media.allowed-to-play.enabled=true', '--media.autoplay.allow-extension-background-pages=true', '--media.autoplay.allow-muted=true', '--media.autoplay.block-webaudio=false', '--media.autoplay.default=-0', '--media.block-autoplay-until-in-foreground=false' ] },
This code works for me for Firefox:
'moz:firefoxOptions': {
prefs: {
'media.peerconnection.ice.obfuscate_host_addresses': false
}
}
I'm trying to pass custom Chrome flags as well as for usual
karma-chrome-launcher
. But seems it's not working. Example config:Is it possible to pass custom cli arguments?