Module Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body TryExcept body Return Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list
N/A N/A WEB_DRIVER_COOKIE_KEYS_MAP N/A name value path secure expires name value path secure expiry _to_unicode_if_str N/A N/A s N/A N/A N/A N/A isinstance s str N/A N/A N/A N/A N/A N/A s decode utf-8 N/A N/A N/A UnicodeDecodeError N/A N/A N/A N/A s decode latin-1 N/A N/A s N/A convert_cookie_to_dict N/A N/A cookie keys_map N/A WEB_DRIVER_COOKIE_KEYS_MAP N/A N/A 
    Converts an instance of Cookie class from cookielib to a dict.
    The names of attributes can be changed according to keys_map:.
    For example, this method can be used to create a cookie which compatible with WebDriver format.

    :param cookie: Cookie instance received from requests/sessions using url2lib or requests libraries.
    :param keys_map: The dict to map cookie attributes for different schemas. By default WebDriver format is used.
    :return:
     N/A cookie_dict N/A dict N/A k N/A N/A keys_map keys N/A N/A key N/A _to_unicode_if_str N/A keys_map N/A k N/A value N/A _to_unicode_if_str N/A getattr cookie k N/A N/A cookie_dict N/A key value N/A cookie_dict N/A add_cookies_to_web_driver N/A N/A driver cookies N/A N/A N/A 
    Sets cookies in an existing WebDriver session.
     N/A cookie cookies N/A N/A N/A N/A driver add_cookie N/A convert_cookie_to_dict cookie N/A driver N/A