---
title: getCookie
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iohidelement/getcookie
---

# getCookie

## Declaration

```occ
virtual IOHIDElementCookie getCookie();
```

## Return Value

Return Value Returns the element cookie. The cookie is a unique identifier of the element.

## See Also

### Identifying the Element

- [IOHIDElementCookie](hiddriverkit/iohidelementcookie.md)
