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: docs/api.md
+2-4
Original file line number
Diff line number
Diff line change
@@ -1480,8 +1480,7 @@ This is a shortcut for [page.mainFrame().url()](#frameurl)
1480
1480
- returns: <[Promise]<[JSHandle]>> Promise which resolves to a JSHandle of the success value
1481
1481
1482
1482
This method behaves differently with respect to the type of the first parameter:
1483
-
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] or [xpath], depending on whether or not it starts with '//', and the method is a shortcut for
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] and the method is a shortcut for [page.waitForSelector](#pagewaitforselectorselector-options)
1485
1484
- if `selectorOrFunctionOrTimeout` is a `function`, then the first argument is treated as a predicate to wait for and the method is a shortcut for [page.waitForFunction()](#pagewaitforfunctionpagefunction-options-args).
1486
1485
- if `selectorOrFunctionOrTimeout` is a `number`, then the first argument is treated as a timeout in milliseconds and the method returns a promise which resolves after the timeout
1487
1486
- otherwise, an exception is thrown
@@ -2135,8 +2134,7 @@ Returns frame's url.
2135
2134
- returns: <[Promise]<[JSHandle]>> Promise which resolves to a JSHandle of the success value
2136
2135
2137
2136
This method behaves differently with respect to the type of the first parameter:
2138
-
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] or [xpath], depending on whether or not it starts with '//', and the method is a shortcut for
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] and the method is a shortcut for [frame.waitForSelector](#framewaitforselectorselector-options)
2140
2138
- if `selectorOrFunctionOrTimeout` is a `function`, then the first argument is treated as a predicate to wait for and the method is a shortcut for [frame.waitForFunction()](#framewaitforfunctionpagefunction-options-args).
2141
2139
- if `selectorOrFunctionOrTimeout` is a `number`, then the first argument is treated as a timeout in milliseconds and the method returns a promise which resolves after the timeout
0 commit comments