これは、ローカル状態ファイルにあるものです。
{
...
"browser": {
"enabled_labs_experiments": [ "force-compositing-mode-2@1" ],
"hung_plugin_detect_freq": 2000,
"last_redirect_origin": "",
"plugin_message_response_timeout": 25000
},
...
}
そして、ChromeDriver に「enabled_labs_experiments」設定をロードしてもらいたいです。そして、これは私がC#でやろうとしたことです:
ChromeOptions options = new ChromeOptions();
options.AddArgument("--start-maximized");
options.AddArgument("--disable-logging");
Dictionary<string, string> dict = new Dictionary<string, string>();
dict.Add("enabled_labs_experiments", "[ force-compositing-mode-2@1 ]");
options.AddAdditionalCapability("localState", dict);
driver = new ChromeDriver(options);
Chrome ブラウザーで chrome://flags を参照すると、コードが機能しないと思います。その設定は、「有効」ではなく「デフォルト」と表示されています。
また、コードを次のように変更しようとしました。
dict.Add("enabled_labs_experiments", "force-compositing-mode-2@1");
...それもうまくいきません。私のコードの何が問題なのですか?