> For the complete documentation index, see [llms.txt](https://docs.pylenium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pylenium.io/driver-commands/cookies/get_cookies.md).

# get\_all\_cookies

## Syntax

```python
py.get_all_cookies() -> List[Dict]
```

## Usage

{% code title="correct usage" %}

```python
py.get_all_cookies()

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

cookies = py.get_all_cookies()
```

{% endcode %}

## Arguments

* None

## Yields

* <mark style="color:purple;">**`List[Dict]`**</mark> A list of cookie objects. Each cookie object has the following properties:
  * `name`
  * `value`
  * `path`
  * `domain`
  * `httpOnly`
  * `secure`
  * `expiry`

## Examples

```python
py.set_cookie({"name": "foo", "value": "bar"})

cookie = py.get_all_cookies()[0]

print(cookie["name"])      # "foo"
print(cookie.get("value")) # "bar"
```

```python
py.set_cookie({"name": "foo", "value": "bar"})
py.set_cookie({"name": "yes", "value", "please"})

for cookie in py.get_all_cookies():
    print(cookie["name"])
    print(cookie.get("value"))
```
