How to add cookie in chrome headless browser

how to add cookie in chrome headless

Mar.19,2021

The simplest use of

is to specify name and value: of cookie directly

driver.add_cookie ({'name':' foo', 'value':' bar'})

of course, you can also add parameters such as "path", "domain", "secure", "expiry" and so on.

Menu