selenium 谷歌驱动修改实验项设置
option = webdriver.ChromeOptions()
experimentalFlags = ['same-site-by-default-cookies@2','cookies-without-same-site-must-be-secure@2']
chromeLocalStatePrefs = { 'browser.enabled_labs_experiments' : experimentalFlags}
option.add_experimental_option('localState',chromeLocalStatePrefs)
s = Service(executable_path)
browser = webdriver.Chrome(options=option, service=s)
在pythonselenium中设置Chrome实验选项same-site-by-default-cookie