37
37
RequestSizes,
38
38
ResourceTiming,
39
39
SecurityDetails,
40
+ SetCookieParam,
40
41
SourceLocation,
41
42
StorageState,
42
43
ViewportSize,
@@ -10091,7 +10092,7 @@ async def cookies(
10091
10092
10092
10093
Returns
10093
10094
-------
10094
- List[{name: str, value: str, url: Union[str, NoneType], domain: Union[ str, NoneType], path: Union[ str, NoneType], expires: Union[ float, NoneType], httpOnly: Union[ bool, NoneType], secure: Union[ bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType ]}]
10095
+ List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}]
10095
10096
"""
10096
10097
10097
10098
return mapping.from_impl_list(
@@ -10100,7 +10101,7 @@ async def cookies(
10100
10101
)
10101
10102
)
10102
10103
10103
- async def add_cookies(self, cookies: typing.List[Cookie ]) -> NoneType:
10104
+ async def add_cookies(self, cookies: typing.List[SetCookieParam ]) -> NoneType:
10104
10105
"""BrowserContext.add_cookies
10105
10106
10106
10107
Adds cookies into this browser context. All pages within this context will have these cookies installed. Cookies can be
@@ -10611,7 +10612,7 @@ async def storage_state(
10611
10612
10612
10613
Returns
10613
10614
-------
10614
- {cookies: Union[ List[{name: str, value: str, url: Union[str, NoneType], domain: Union[ str, NoneType], path: Union[ str, NoneType], expires: Union[ float, NoneType], httpOnly: Union[ bool, NoneType], secure: Union[ bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType ]}], NoneType], origins: Union[ List[{origin: str, localStorage: List[{name: str, value: str}]}], NoneType ]}
10615
+ {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}
10615
10616
"""
10616
10617
10617
10618
return mapping.from_impl(
@@ -10943,7 +10944,7 @@ async def new_context(
10943
10944
Dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit into
10944
10945
800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page will
10945
10946
be scaled down if necessary to fit the specified size.
10946
- storage_state : Union[pathlib.Path, str, {cookies: Union[ List[{name: str, value: str, url: Union[str, NoneType], domain: Union[ str, NoneType], path: Union[ str, NoneType], expires: Union[ float, NoneType], httpOnly: Union[ bool, NoneType], secure: Union[ bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType ]}], NoneType], origins: Union[ List[{origin: str, localStorage: List[{name: str, value: str}]}], NoneType ]}, NoneType]
10947
+ storage_state : Union[pathlib.Path, str, {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}, NoneType]
10947
10948
Populates context with given storage state. This option can be used to initialize context with logged-in information
10948
10949
obtained via `browser_context.storage_state()`. Either a path to the file with saved storage, or an object with
10949
10950
the following fields:
@@ -11117,7 +11118,7 @@ async def new_page(
11117
11118
Dimensions of the recorded videos. If not specified the size will be equal to `viewport` scaled down to fit into
11118
11119
800x800. If `viewport` is not configured explicitly the video size defaults to 800x450. Actual picture of each page will
11119
11120
be scaled down if necessary to fit the specified size.
11120
- storage_state : Union[pathlib.Path, str, {cookies: Union[ List[{name: str, value: str, url: Union[str, NoneType], domain: Union[ str, NoneType], path: Union[ str, NoneType], expires: Union[ float, NoneType], httpOnly: Union[ bool, NoneType], secure: Union[ bool, NoneType], sameSite: Union["Lax", "None", "Strict", NoneType ]}], NoneType], origins: Union[ List[{origin: str, localStorage: List[{name: str, value: str}]}], NoneType ]}, NoneType]
11121
+ storage_state : Union[pathlib.Path, str, {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}, NoneType]
11121
11122
Populates context with given storage state. This option can be used to initialize context with logged-in information
11122
11123
obtained via `browser_context.storage_state()`. Either a path to the file with saved storage, or an object with
11123
11124
the following fields:
0 commit comments