set_cookie
The command to set a cookie into the current browser session.
Syntax
py.set_cookie(cookie: dict) -> NoneUsage
py.set_cookie({"name" : "foo", "value" : "bar"})# Errors, 'set_cookie' accepts a single argument that is a Dict
py.set_cookie("foo", "bar")
---or---
# Errors, 'set_cookie' yields None
py.set_cookie({"name" : "foo", "value" : "bar"}).get_cookie()Arguments
cookie (Dict)- A dictionary with required keys:"name"and"value"
Yields
None
Last updated