docs: add name for SameSiteEnum (#5340)

This commit is contained in:
Yury Semikhatsky 2021-02-05 16:13:48 -08:00 committed by GitHub
parent 4b74f5693c
commit d3cc1d7648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ browser_context.add_cookies([cookie_object1, cookie_object2])
- `expires` <[float]> Unix time in seconds. Optional.
- `httpOnly` <[boolean]> Optional.
- `secure` <[boolean]> Optional.
- `sameSite` <"Strict"|"Lax"|"None"> Optional.
- `sameSite` <[SameSiteEnum]<"Strict"|"Lax"|"None">> Optional.
## async method: BrowserContext.addInitScript
@ -217,7 +217,7 @@ The default browser context cannot be closed.
- `expires` <[float]> Unix time in seconds.
- `httpOnly` <[boolean]>
- `secure` <[boolean]>
- `sameSite` <"Strict"|"Lax"|"None">
- `sameSite` <[SameSiteEnum]<"Strict"|"Lax"|"None">>
If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those URLs
are returned.
@ -710,7 +710,7 @@ Whether to emulate network being offline for the browser context.
- `expires` <[float]> Unix time in seconds.
- `httpOnly` <[boolean]>
- `secure` <[boolean]>
- `sameSite` <"Strict"|"Lax"|"None">
- `sameSite` <[SameSiteEnum]<"Strict"|"Lax"|"None">>
- `origins` <[Array]<[Object]>>
- `origin` <[string]>
- `localStorage` <[Array]<[Object]>>

View File

@ -155,7 +155,7 @@ Specify environment variables that will be visible to the browser. Defaults to `
- `expires` <[float]> Optional Unix time in seconds.
- `httpOnly` <[boolean]> Optional httpOnly flag
- `secure` <[boolean]> Optional secure flag
- `sameSite` <"Strict"|"Lax"|"None"> Optional sameSite flag
- `sameSite` <["SameSiteEnum"]<"Strict"|"Lax"|"None">> Optional sameSite flag
- `origins` <[Array]<[Object]>> Optional localStorage to set for context
- `origin` <[string]>
- `localStorage` <[Array]<[Object]>>