2121from playwright._impl._accessibility import Accessibility as AccessibilityImpl
2222from playwright._impl._api_structures import (
2323 ClientCertificate,
24- Cookie,
2524 FilePayload,
2625 FloatRect,
2726 Geolocation,
2827 HttpCredentials,
2928 NameValue,
29+ PartitionedCookie,
30+ PartitionedStorageState,
3031 PdfMargins,
3132 Position,
3233 ProxySettings,
@@ -12649,7 +12650,8 @@ def pages(self) -> typing.List["Page"]:
1264912650 def browser(self) -> typing.Optional["Browser"]:
1265012651 """BrowserContext.browser
1265112652
12652- Returns the browser instance of the context. If it was launched as a persistent context null gets returned.
12653+ Gets the browser instance that owns the context. Returns `null` if the context is created outside of normal
12654+ browser, e.g. Android or Electron.
1265312655
1265412656 Returns
1265512657 -------
@@ -12776,7 +12778,7 @@ async def new_page(self) -> "Page":
1277612778
1277712779 async def cookies(
1277812780 self, urls: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None
12779- ) -> typing.List[Cookie ]:
12781+ ) -> typing.List[PartitionedCookie ]:
1278012782 """BrowserContext.cookies
1278112783
1278212784 If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those
@@ -12789,7 +12791,7 @@ async def cookies(
1278912791
1279012792 Returns
1279112793 -------
12792- List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"]}]
12794+ List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"], partitionKey: Union[str, None] }]
1279312795 """
1279412796
1279512797 return mapping.from_impl_list(
@@ -12810,7 +12812,7 @@ async def add_cookies(self, cookies: typing.Sequence[SetCookieParam]) -> None:
1281012812
1281112813 Parameters
1281212814 ----------
12813- cookies : Sequence[{name: str, value: str, url: Union[str, None], domain: Union[str, None], path: Union[str, None], expires: Union[float, None], httpOnly: Union[bool, None], secure: Union[bool, None], sameSite: Union["Lax", "None", "Strict", None]}]
12815+ cookies : Sequence[{name: str, value: str, url: Union[str, None], domain: Union[str, None], path: Union[str, None], expires: Union[float, None], httpOnly: Union[bool, None], secure: Union[bool, None], sameSite: Union["Lax", "None", "Strict", None], partitionKey: Union[str, None] }]
1281412816 """
1281512817
1281612818 return mapping.from_maybe_impl(
@@ -13436,7 +13438,7 @@ async def storage_state(
1343613438 *,
1343713439 path: typing.Optional[typing.Union[str, pathlib.Path]] = None,
1343813440 indexed_db: typing.Optional[bool] = None,
13439- ) -> StorageState :
13441+ ) -> PartitionedStorageState :
1344013442 """BrowserContext.storage_state
1344113443
1344213444 Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB
@@ -13454,7 +13456,7 @@ async def storage_state(
1345413456
1345513457 Returns
1345613458 -------
13457- {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}]}]}
13459+ {cookies: List[{name: str, value: str, domain: str, path: str, expires: float, httpOnly: bool, secure: bool, sameSite: Union["Lax", "None", "Strict"], partitionKey: Union[str, None] }], origins: List[{origin: str, localStorage: List[{name: str, value: str}]}]}
1345813460 """
1345913461
1346013462 return mapping.from_impl(
@@ -16445,6 +16447,13 @@ def describe(self, description: str) -> "Locator":
1644516447 Describes the locator, description is used in the trace viewer and reports. Returns the locator pointing to the
1644616448 same element.
1644716449
16450+ **Usage**
16451+
16452+ ```py
16453+ button = page.get_by_test_id(\"btn-sub\").describe(\"Subscribe button\")
16454+ await button.click()
16455+ ```
16456+
1644816457 Parameters
1644916458 ----------
1645016459 description : str
0 commit comments