ジェイソン法:
私はクローム実験的なオプションを無効にしたいsame-site-by-default-cookies
とcookies-without-same-site-must-be-secure
。
クローム実験的なオプションのpythonセレンで同じサイト・バイ・デフォルト・クッキーを設定する方法-スタックオーバーフローを、私は私が有効にできる方法を知っているが、私は無効にしたい場合、私は何をすべきでしょうか?
ラーフルL:
あなたは使用して無効にすることができますsame-site-by-default-cookies@2
&cookies-without-same-site-must-be-secure@2
。バージョン80.0.3987.122(公式ビルド)でテスト(64ビット)
ChromeOptions options = new ChromeOptions();
HashMap<String, Object> chromeLocalStatePrefs = new HashMap<String, Object>();
List<String> experimentalFlags = new ArrayList<String>();
experimentalFlags.add("same-site-by-default-cookies@2");
experimentalFlags.add("cookies-without-same-site-must-be-secure@2");
chromeLocalStatePrefs.put("browser.enabled_labs_experiments", experimentalFlags);
options.setExperimentalOption("localState", chromeLocalStatePrefs);