I suppose this should work:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option('same-site-by-default-cookies', 'true')
driver = webdriver.Chrome(chrome_options=options)
to enable samesite cookies restrictions scheduled for future chrome version. It is not, there is error:
selenium.common.exceptions.InvalidArgumentException:
Message: invalid argument: cannot parse capability: goog:chromeOptions
from invalid argument: unrecognized chrome option: same-site-by-default-cookies
I can change option manually using chrome://flags and see it is working. However I would like to automate it and just run testing script to see it.
There is java code here: https://groups.google.com/forum/#!topic/chromedriver-users/cI8hj7eihRo which could do it, however I'm not sure, how to transfer it to python.
Is there any reference available, which would help me to set this option or different options?