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
Shortcut for [page.mainFrame().title()](#frametitle).
1573
1572
1574
-
#### page.tripleclick(selector[, options])
1575
-
-`selector` <[string]> A selector to search for element to triple click. If there are multiple elements satisfying the selector, the first will be triple clicked.
1576
-
-`options` <[Object]>
1577
-
-`button` <"left"|"right"|"middle"> Defaults to `left`.
1578
-
-`delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
1579
-
-`offset` <[Object]> A point to triple click relative to the top-left corner of element padding box. If not specified, triple clicks to some visible point of the element.
1580
-
- x <[number]>
1581
-
- y <[number]>
1582
-
-`modifiers` <[Array]<"Alt"|"Control"|"Meta"|"Shift">> Modifier keys to press. Ensures that only these modifiers are pressed during the triple click, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
1583
-
-`force` <[boolean]> Whether to bypass the actionability checks. By default actions wait until the element is:
1584
-
- displayed (for example, no `display:none`),
1585
-
- is not moving (for example, waits until css transition finishes),
1586
-
- receives pointer events at the action point (for example, waits until element becomes non-obscured by other elements).
1587
-
Even if the action is forced, it will wait for the element matching selector to be in DOM. Defaults to `false`.
1588
-
-`waitUntil` <"load"|"domcontentloaded"|"networkidle0"|"networkidle2"|"nowait"> Actions that cause navigations are waiting for those navigations to fire `domcontentloaded` by default. This behavior can be changed to either wait for another load phase or to omit the waiting altogether using `nowait`:
1589
-
-`'domcontentloaded'` - consider navigation to be finished when the `DOMContentLoaded` event is fired.
1590
-
-`'load'` - consider navigation to be finished when the `load` event is fired.
1591
-
-`'networkidle0'` - consider navigation to be finished when there are no more than 0 network connections for at least `500` ms.
1592
-
-`'networkidle2'` - consider navigation to be finished when there are no more than 2 network connections for at least `500` ms.
1593
-
-`'nowait'` - do not wait.
1594
-
-`timeout` <[number]> Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
1595
-
- returns: <[Promise]> Promise which resolves when the element matching `selector` is successfully triple clicked. The Promise will be rejected if there is no element matching `selector`.
1596
-
1597
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses [page.mouse](#pagemouse) to triple click in the center of the element.
1598
-
If there's no element matching `selector`, the method throws an error.
1599
-
1600
-
Bear in mind that if the first or second click of the `tripleclick()` triggers a navigation event, there will be an exception.
1601
-
1602
-
> **NOTE**`page.tripleclick()` dispatches three `click` events and a single `dblclick` event.
1603
-
1604
-
Shortcut for [page.mainFrame().tripleclick(selector[, options])](#frametripleclickselector-options).
1605
-
1606
1573
#### page.type(selector, text[, options])
1607
1574
-`selector` <[string]> A selector of an element to type into. If there are multiple elements satisfying the selector, the first will be used.
1608
1575
-`text` <[string]> A text to type into a focused element.
@@ -1917,7 +1884,6 @@ An example of getting text from an iframe element:
- returns: <[Promise]<[string]>> The page's title.
2300
2266
2301
-
#### frame.tripleclick(selector[, options])
2302
-
-`selector` <[string]> A selector to search for element to triple click. If there are multiple elements satisfying the selector, the first will be triple clicked.
2303
-
-`options` <[Object]>
2304
-
-`button` <"left"|"right"|"middle"> Defaults to `left`.
2305
-
-`delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
2306
-
-`offset` <[Object]> A point to triple click relative to the top-left corner of element padding box. If not specified, triple clicks to some visible point of the element.
2307
-
- x <[number]>
2308
-
- y <[number]>
2309
-
-`modifiers` <[Array]<"Alt"|"Control"|"Meta"|"Shift">> Modifier keys to press. Ensures that only these modifiers are pressed during the triple click, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
2310
-
-`force` <[boolean]> Whether to bypass the actionability checks. By default actions wait until the element is:
2311
-
- displayed (for example, no `display:none`),
2312
-
- is not moving (for example, waits until css transition finishes),
2313
-
- receives pointer events at the action point (for example, waits until element becomes non-obscured by other elements).
2314
-
Even if the action is forced, it will wait for the element matching selector to be in DOM. Defaults to `false`.
2315
-
-`waitUntil` <"load"|"domcontentloaded"|"networkidle0"|"networkidle2"|"nowait"> Actions that cause navigations are waiting for those navigations to fire `domcontentloaded` by default. This behavior can be changed to either wait for another load phase or to omit the waiting altogether using `nowait`:
2316
-
-`'domcontentloaded'` - consider navigation to be finished when the `DOMContentLoaded` event is fired.
2317
-
-`'load'` - consider navigation to be finished when the `load` event is fired.
2318
-
-`'networkidle0'` - consider navigation to be finished when there are no more than 0 network connections for at least `500` ms.
2319
-
-`'networkidle2'` - consider navigation to be finished when there are no more than 2 network connections for at least `500` ms.
2320
-
-`'nowait'` - do not wait.
2321
-
-`timeout` <[number]> Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
2322
-
- returns: <[Promise]> Promise which resolves when the element matching `selector` is successfully triple clicked. The Promise will be rejected if there is no element matching `selector`.
2323
-
2324
-
This method fetches an element with `selector`, scrolls it into view if needed, and then uses [page.mouse](#pagemouse) to triple click in the center of the element.
2325
-
If there's no element matching `selector`, the method throws an error.
2326
-
2327
-
Bear in mind that if the first or second click of the `tripleclick()` triggers a navigation event, there will be an exception.
2328
-
2329
-
> **NOTE**`frame.tripleclick()` dispatches three `click` events and a single `dblclick` event.
2330
-
2331
2267
#### frame.type(selector, text[, options])
2332
2268
-`selector` <[string]> A selector of an element to type into. If there are multiple elements satisfying the selector, the first will be used.
2333
2269
-`text` <[string]> A text to type into a focused element.
@@ -2532,7 +2468,6 @@ ElementHandle instances can be used as arguments in [`page.$eval()`](#pageevalse
@@ -2806,35 +2741,6 @@ Sets the value of the file input to these file paths or files. If some of the `
2806
2741
#### elementHandle.toString()
2807
2742
- returns: <[string]>
2808
2743
2809
-
#### elementHandle.tripleclick([options])
2810
-
-`options` <[Object]>
2811
-
-`button` <"left"|"right"|"middle"> Defaults to `left`.
2812
-
-`delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
2813
-
-`offset` <[Object]> A point to triple click relative to the top-left corner of element padding box. If not specified, triple clicks to some visible point of the element.
2814
-
- x <[number]>
2815
-
- y <[number]>
2816
-
-`modifiers` <[Array]<"Alt"|"Control"|"Meta"|"Shift">> Modifier keys to press. Ensures that only these modifiers are pressed during the triple click, and then restores current modifiers back. If not specified, currently pressed modifiers are used.
2817
-
-`force` <[boolean]> Whether to bypass the actionability checks. By default actions wait until the element is:
2818
-
- displayed (for example, no `display:none`),
2819
-
- is not moving (for example, waits until css transition finishes),
2820
-
- receives pointer events at the action point (for example, waits until element becomes non-obscured by other elements).
2821
-
Even if the action is forced, it will wait for the element matching selector to be in DOM. Defaults to `false`.
2822
-
-`waitUntil` <"load"|"domcontentloaded"|"networkidle0"|"networkidle2"|"nowait"> Actions that cause navigations are waiting for those navigations to fire `domcontentloaded` by default. This behavior can be changed to either wait for another load phase or to omit the waiting altogether using `nowait`:
2823
-
-`'domcontentloaded'` - consider navigation to be finished when the `DOMContentLoaded` event is fired.
2824
-
-`'load'` - consider navigation to be finished when the `load` event is fired.
2825
-
-`'networkidle0'` - consider navigation to be finished when there are no more than 0 network connections for at least `500` ms.
2826
-
-`'networkidle2'` - consider navigation to be finished when there are no more than 2 network connections for at least `500` ms.
2827
-
-`'nowait'` - do not wait.
2828
-
-`timeout` <[number]> Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
2829
-
- returns: <[Promise]> Promise which resolves when the element is successfully triple clicked. Promise gets rejected if the element is detached from DOM.
2830
-
2831
-
This method scrolls element into view if needed, and then uses [page.mouse](#pagemouse) to click in the center of the element.
2832
-
If the element is detached from DOM, the method throws an error.
2833
-
2834
-
Bear in mind that if the first or second click of the `tripleclick()` triggers a navigation event, there will be an exception.
2835
-
2836
-
> **NOTE**`elementHandle.tripleclick()` dispatches three `click` events and a single `dblclick` event.
2837
-
2838
2744
#### elementHandle.type(text[, options])
2839
2745
-`text` <[string]> A text to type into a focused element.
@@ -3206,16 +3111,6 @@ Dispatches a `mousedown` event.
3206
3111
3207
3112
Dispatches a `mousemove` event.
3208
3113
3209
-
#### mouse.tripleclick(x, y[, options])
3210
-
-`x` <[number]>
3211
-
-`y` <[number]>
3212
-
-`options` <[Object]>
3213
-
-`button` <"left"|"right"|"middle"> Defaults to `left`.
3214
-
-`delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
3215
-
- returns: <[Promise]>
3216
-
3217
-
Shortcut for [`mouse.move`](#mousemovex-y-options), [`mouse.down`](#mousedownoptions), [`mouse.up`](#mouseupoptions), [`mouse.down`](#mousedownoptions), [`mouse.up`](#mouseupoptions), [`mouse.down`](#mousedownoptions) and [`mouse.up`](#mouseupoptions).
3218
-
3219
3114
#### mouse.up([options])
3220
3115
-`options` <[Object]>
3221
3116
-`button` <"left"|"right"|"middle"> Defaults to `left`.
0 commit comments