从命令行启用Chrome标志 [英] enable Chrome flags from the command line

查看:129
本文介绍了从命令行启用Chrome标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在启动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

他们都没有工作.

推荐答案

  1. 转到chrome://version
  2. 查找命令行参数:

命令行/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆