docs(api.md): Clarify how to call page.setCookie (#3215)

Fixes #3109
This commit is contained in:
Matt Zeunert 2018-09-07 10:46:12 +01:00 committed by Andrey Lushnikov
parent 78e9d5c422
commit c5511ecb81

View File

@ -1569,6 +1569,10 @@ Toggles ignoring cache for each request based on the enabled state. By default,
- `sameSite` <[string]> `"Strict"` or `"Lax"`.
- returns: <[Promise]>
```js
await page.setCookie(cookieObject1, cookieObject2);
```
#### page.setDefaultNavigationTimeout(timeout)
- `timeout` <[number]> Maximum navigation time in milliseconds