get_all_cookies

The command to get all cookies in the current browser session.

Syntax

py.get_all_cookies() -> List[Dict]

Usage

correct usage
py.get_all_cookies()

---or--- # store in a variable

cookies = py.get_all_cookies()

Arguments

  • None

Yields

  • List[Dict] A list of cookie objects. Each cookie object has the following properties:

    • name

    • value

    • path

    • domain

    • httpOnly

    • secure

    • expiry

Examples

Last updated