@@ -5221,6 +5221,30 @@ async def set_checked(
5221
5221
5222
5222
5223
5223
class 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
+
5224
5248
def locator(self, selector: str) -> "Locator":
5225
5249
"""FrameLocator.locator
5226
5250
@@ -5256,6 +5280,22 @@ def frame_locator(self, selector: str) -> "FrameLocator":
5256
5280
5257
5281
return mapping.from_impl(self._impl_obj.frame_locator(selector=selector))
5258
5282
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
+
5259
5299
5260
5300
mapping.register(FrameLocatorImpl, FrameLocator)
5261
5301
@@ -13792,7 +13832,7 @@ async def delete(
13792
13832
url : str
13793
13833
Target URL.
13794
13834
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.
13796
13836
headers : Union[Dict[str, str], NoneType]
13797
13837
Allows to set HTTP headers.
13798
13838
data : Union[Any, bytes, str, NoneType]
@@ -13860,7 +13900,7 @@ async def head(
13860
13900
url : str
13861
13901
Target URL.
13862
13902
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.
13864
13904
headers : Union[Dict[str, str], NoneType]
13865
13905
Allows to set HTTP headers.
13866
13906
timeout : Union[float, NoneType]
@@ -13912,7 +13952,7 @@ async def get(
13912
13952
url : str
13913
13953
Target URL.
13914
13954
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.
13916
13956
headers : Union[Dict[str, str], NoneType]
13917
13957
Allows to set HTTP headers.
13918
13958
timeout : Union[float, NoneType]
@@ -13969,7 +14009,7 @@ async def patch(
13969
14009
url : str
13970
14010
Target URL.
13971
14011
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.
13973
14013
headers : Union[Dict[str, str], NoneType]
13974
14014
Allows to set HTTP headers.
13975
14015
data : Union[Any, bytes, str, NoneType]
@@ -14042,7 +14082,7 @@ async def put(
14042
14082
url : str
14043
14083
Target URL.
14044
14084
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.
14046
14086
headers : Union[Dict[str, str], NoneType]
14047
14087
Allows to set HTTP headers.
14048
14088
data : Union[Any, bytes, str, NoneType]
@@ -14115,7 +14155,7 @@ async def post(
14115
14155
url : str
14116
14156
Target URL.
14117
14157
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.
14119
14159
headers : Union[Dict[str, str], NoneType]
14120
14160
Allows to set HTTP headers.
14121
14161
data : Union[Any, bytes, str, NoneType]
@@ -14188,7 +14228,7 @@ async def fetch(
14188
14228
url_or_request : Union[Request, str]
14189
14229
Target URL or Request to get all parameters from.
14190
14230
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.
14192
14232
method : Union[str, NoneType]
14193
14233
If set changes the fetch method (e.g. [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) or
14194
14234
[POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)). If not specified, GET method is used.
0 commit comments