You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: playwright/async_api.py
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -944,7 +944,7 @@ async def hover(
944
944
) ->NoneType:
945
945
"""ElementHandle.hover
946
946
947
-
This method scrolls element into view if needed, and then uses page.mouse to hover over the center of the element.
947
+
This method waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to hover over the center of the element.
948
948
If the element is detached from DOM, the method throws an error.
949
949
950
950
Parameters
@@ -979,7 +979,7 @@ async def click(
979
979
) ->NoneType:
980
980
"""ElementHandle.click
981
981
982
-
This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element.
982
+
This method waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to click in the center of the element.
983
983
If the element is detached from DOM, the method throws an error.
984
984
985
985
Parameters
@@ -1028,7 +1028,7 @@ async def dblclick(
1028
1028
) ->NoneType:
1029
1029
"""ElementHandle.dblclick
1030
1030
1031
-
This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element.
1031
+
This method waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to double click in the center of the element.
1032
1032
If the element is detached from DOM, the method throws an error.
1033
1033
Bear in mind that if the first click of the `dblclick()` triggers a navigation event, there will be an exception.
1034
1034
@@ -1241,7 +1241,7 @@ async def check(
1241
1241
) ->NoneType:
1242
1242
"""ElementHandle.check
1243
1243
1244
-
If element is not already checked, it scrolls it into view if needed, and then uses elementHandle.click to click in the center of the element.
1244
+
This method waits for actionability checks. Then, if the element is not already checked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
1245
1245
1246
1246
Parameters
1247
1247
----------
@@ -1263,7 +1263,7 @@ async def uncheck(
1263
1263
) ->NoneType:
1264
1264
"""ElementHandle.uncheck
1265
1265
1266
-
If element is not already unchecked, it scrolls it into view if needed, and then uses elementHandle.click to click in the center of the element.
1266
+
This method waits for actionability checks. Then, if the element is not already unchecked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
1267
1267
1268
1268
Parameters
1269
1269
----------
@@ -2108,7 +2108,7 @@ async def click(
2108
2108
) ->NoneType:
2109
2109
"""Frame.click
2110
2110
2111
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to click in the center of the element.
2111
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to click in the center of the element.
2112
2112
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
2113
2113
2114
2114
Parameters
@@ -2160,7 +2160,7 @@ async def dblclick(
2160
2160
) ->NoneType:
2161
2161
"""Frame.dblclick
2162
2162
2163
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to double click in the center of the element.
2163
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to double click in the center of the element.
2164
2164
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
2165
2165
Bear in mind that if the first click of the `dblclick()` triggers a navigation event, there will be an exception.
2166
2166
@@ -2339,7 +2339,7 @@ async def hover(
2339
2339
) ->NoneType:
2340
2340
"""Frame.hover
2341
2341
2342
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to hover over the center of the element.
2342
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to hover over the center of the element.
2343
2343
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
2344
2344
2345
2345
Parameters
@@ -2529,7 +2529,7 @@ async def check(
2529
2529
) ->NoneType:
2530
2530
"""Frame.check
2531
2531
2532
-
This method fetches an element with `selector`, if element is not already checked, it scrolls it into view if needed, and then uses frame.click to click in the center of the element.
2532
+
This method waits for an element matching `selector`, waits for actionability checks. Then, if the element is not already checked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
2533
2533
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
2534
2534
2535
2535
Parameters
@@ -2558,7 +2558,7 @@ async def uncheck(
2558
2558
) ->NoneType:
2559
2559
"""Frame.uncheck
2560
2560
2561
-
This method fetches an element with `selector`, if element is not already unchecked, it scrolls it into view if needed, and then uses frame.click to click in the center of the element.
2561
+
This method waits for an element matching `selector`, waits for actionability checks. Then, if the element is not already unchecked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
2562
2562
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
2563
2563
2564
2564
Parameters
@@ -4068,7 +4068,7 @@ async def click(
4068
4068
) ->NoneType:
4069
4069
"""Page.click
4070
4070
4071
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to click in the center of the element.
4071
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to click in the center of the element.
4072
4072
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
4073
4073
Shortcut for page.mainFrame().click(selector[, options]).
4074
4074
@@ -4121,7 +4121,7 @@ async def dblclick(
4121
4121
) ->NoneType:
4122
4122
"""Page.dblclick
4123
4123
4124
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to double click in the center of the element.
4124
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to double click in the center of the element.
4125
4125
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
4126
4126
Bear in mind that if the first click of the `dblclick()` triggers a navigation event, there will be an exception.
4127
4127
@@ -4304,7 +4304,7 @@ async def hover(
4304
4304
) ->NoneType:
4305
4305
"""Page.hover
4306
4306
4307
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses page.mouse to hover over the center of the element.
4307
+
This method waits for an element matching `selector`, waits for actionability checks, then scrolls the element into view if needed and uses page.mouse to hover over the center of the element.
4308
4308
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
4309
4309
Shortcut for page.mainFrame().hover(selector[, options]).
4310
4310
@@ -4494,7 +4494,7 @@ async def check(
4494
4494
) ->NoneType:
4495
4495
"""Page.check
4496
4496
4497
-
This method fetches an element with `selector`, if element is not already checked, it scrolls it into view if needed, and then uses page.click to click in the center of the element.
4497
+
This method waits for an element matching `selector`, waits for actionability checks. Then, if the element is not already checked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
4498
4498
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
4499
4499
Shortcut for page.mainFrame().check(selector[, options]).
4500
4500
@@ -4524,7 +4524,7 @@ async def uncheck(
4524
4524
) ->NoneType:
4525
4525
"""Page.uncheck
4526
4526
4527
-
This method fetches an element with `selector`, if element is not already unchecked, it scrolls it into view if needed, and then uses page.click to click in the center of the element.
4527
+
This method waits for an element matching `selector`, waits for actionability checks. Then, if the element is not already unchecked, this method scrolls the element into view and uses elementHandle.click to click in the center of the element.
4528
4528
If there's no element matching `selector`, the method waits until a matching element appears in the DOM. If the element is detached during the actionability checks, the action is retried.
4529
4529
Shortcut for page.mainFrame().uncheck(selector[, options]).
4530
4530
@@ -4574,7 +4574,7 @@ async def waitForFunction(
4574
4574
The `waitForFunction` can be used to observe viewport size change:
4575
4575
4576
4576
To pass an argument from Node.js to the predicate of `page.waitForFunction` function:
4577
-
Shortcut for [page.mainFrame().waitForFunction(pageFunction, arg, options]])](#framewaitforfunctionpagefunction-arg-options).
4577
+
Shortcut for page.mainFrame().waitForFunction(pageFunction[, arg, options]).
0 commit comments