# setCookie
- Adds a single cookie to the cookie store associated with the active document’s address.
- @summary Support: Web(WebView)
- @param {object} cookie - example: {url: 'https://macacajs.github.io', name:'foo', value:'bar'} Optional cookie fields: secure, expiry
- @see {@link https://w3c.github.io/webdriver/#add-cookie|POST /session/:sessionId/cookie}
← deleteCookie clear →