从命令行启用Chrome标志 [英] enable Chrome flags from the command line
问题描述
我想在启动chrome时启用一个标志(启用令牌绑定). 我可以使用chrome://flags页面来做到这一点.但是对于运行测试,我需要从命令行执行.
I want to enable a flag (enable-token-binding) while launching chrome. I can do that using chrome://flags page. but for running tests I need to do it from command line.
我尝试了
chrome --enable-features =令牌绑定
chrome --enable-features=token-binding
chrome --enable-token-binding
chrome --enable-token-binding
他们都没有工作.
推荐答案
- 转到chrome://version
- 查找命令行参数:
命令行/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --enable-audio-service-sandbox -flag-switches-begin --enable-features = CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies --flag -switches-end --enable-audio-service-sandbox
Command Line /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --enable-audio-service-sandbox --flag-switches-begin --enable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies --flag-switches-end --enable-audio-service-sandbox
使用所有参数运行上述命令,您的chrome实例将预先设置所有设置.
Run the above command with all the arguments and your chrome instance would have all the settings preset.
这篇关于从命令行启用Chrome标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!