@@ -5221,6 +5221,30 @@ async def set_checked(
52215221
52225222
52235223class FrameLocator(AsyncBase):
5224+ @property
5225+ def first(self) -> "FrameLocator":
5226+ """FrameLocator.first
5227+
5228+ Returns locator to the first matching frame.
5229+
5230+ Returns
5231+ -------
5232+ FrameLocator
5233+ """
5234+ return mapping.from_impl(self._impl_obj.first)
5235+
5236+ @property
5237+ def last(self) -> "FrameLocator":
5238+ """FrameLocator.last
5239+
5240+ Returns locator to the last matching frame.
5241+
5242+ Returns
5243+ -------
5244+ FrameLocator
5245+ """
5246+ return mapping.from_impl(self._impl_obj.last)
5247+
52245248 def locator(self, selector: str) -> "Locator":
52255249 """FrameLocator.locator
52265250
@@ -5256,6 +5280,22 @@ def frame_locator(self, selector: str) -> "FrameLocator":
52565280
52575281 return mapping.from_impl(self._impl_obj.frame_locator(selector=selector))
52585282
5283+ def nth(self, index: int) -> "FrameLocator":
5284+ """FrameLocator.nth
5285+
5286+ Returns locator to the n-th matching frame.
5287+
5288+ Parameters
5289+ ----------
5290+ index : int
5291+
5292+ Returns
5293+ -------
5294+ FrameLocator
5295+ """
5296+
5297+ return mapping.from_impl(self._impl_obj.nth(index=index))
5298+
52595299
52605300mapping.register(FrameLocatorImpl, FrameLocator)
52615301
@@ -13792,7 +13832,7 @@ async def delete(
1379213832 url : str
1379313833 Target URL.
1379413834 params : Union[Dict[str, Union[bool, float, str]], NoneType]
13795- Query parameters to be send with the URL.
13835+ Query parameters to be sent with the URL.
1379613836 headers : Union[Dict[str, str], NoneType]
1379713837 Allows to set HTTP headers.
1379813838 data : Union[Any, bytes, str, NoneType]
@@ -13860,7 +13900,7 @@ async def head(
1386013900 url : str
1386113901 Target URL.
1386213902 params : Union[Dict[str, Union[bool, float, str]], NoneType]
13863- Query parameters to be send with the URL.
13903+ Query parameters to be sent with the URL.
1386413904 headers : Union[Dict[str, str], NoneType]
1386513905 Allows to set HTTP headers.
1386613906 timeout : Union[float, NoneType]
@@ -13912,7 +13952,7 @@ async def get(
1391213952 url : str
1391313953 Target URL.
1391413954 params : Union[Dict[str, Union[bool, float, str]], NoneType]
13915- Query parameters to be send with the URL.
13955+ Query parameters to be sent with the URL.
1391613956 headers : Union[Dict[str, str], NoneType]
1391713957 Allows to set HTTP headers.
1391813958 timeout : Union[float, NoneType]
@@ -13969,7 +14009,7 @@ async def patch(
1396914009 url : str
1397014010 Target URL.
1397114011 params : Union[Dict[str, Union[bool, float, str]], NoneType]
13972- Query parameters to be send with the URL.
14012+ Query parameters to be sent with the URL.
1397314013 headers : Union[Dict[str, str], NoneType]
1397414014 Allows to set HTTP headers.
1397514015 data : Union[Any, bytes, str, NoneType]
@@ -14042,7 +14082,7 @@ async def put(
1404214082 url : str
1404314083 Target URL.
1404414084 params : Union[Dict[str, Union[bool, float, str]], NoneType]
14045- Query parameters to be send with the URL.
14085+ Query parameters to be sent with the URL.
1404614086 headers : Union[Dict[str, str], NoneType]
1404714087 Allows to set HTTP headers.
1404814088 data : Union[Any, bytes, str, NoneType]
@@ -14115,7 +14155,7 @@ async def post(
1411514155 url : str
1411614156 Target URL.
1411714157 params : Union[Dict[str, Union[bool, float, str]], NoneType]
14118- Query parameters to be send with the URL.
14158+ Query parameters to be sent with the URL.
1411914159 headers : Union[Dict[str, str], NoneType]
1412014160 Allows to set HTTP headers.
1412114161 data : Union[Any, bytes, str, NoneType]
@@ -14188,7 +14228,7 @@ async def fetch(
1418814228 url_or_request : Union[Request, str]
1418914229 Target URL or Request to get all parameters from.
1419014230 params : Union[Dict[str, Union[bool, float, str]], NoneType]
14191- Query parameters to be send with the URL.
14231+ Query parameters to be sent with the URL.
1419214232 method : Union[str, NoneType]
1419314233 If set changes the fetch method (e.g. [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) or
1419414234 [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)). If not specified, GET method is used.
0 commit comments