getCookies()
Get browser cookies
Examples
Section titled “Examples”await getCookies()await getCookies({urls:['https://the-internet.herokuapp.com']})Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
options | Object | Default: {}. |
options.urls | Array | The list of URLs for which applicable cookies will be fetched Default: undefined. |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| Promise<Array<Object>> | Array of cookie objects |