browsertime 26.3.1 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -2
- package/README.md +1 -1
- package/browserscripts/timings/softNavigations.js +94 -0
- package/lib/chrome/har.js +36 -5
- package/lib/chrome/settings/chromeAndroidOptions.js +2 -1
- package/lib/chrome/webdriver/chromium.js +39 -0
- package/lib/chrome/webdriver/setupChromiumOptions.js +86 -31
- package/lib/core/engine/collector.js +340 -317
- package/lib/core/engine/command/addText.js +93 -12
- package/lib/core/engine/command/click.js +239 -139
- package/lib/core/engine/command/commandHelper.js +45 -0
- package/lib/core/engine/command/cookie.js +85 -0
- package/lib/core/engine/command/element.js +37 -2
- package/lib/core/engine/command/javaScript.js +14 -24
- package/lib/core/engine/command/measure/screenshots.js +114 -0
- package/lib/core/engine/command/measure/video.js +85 -0
- package/lib/core/engine/command/measure.js +104 -180
- package/lib/core/engine/command/mouse/clickAndHold.js +6 -3
- package/lib/core/engine/command/mouse/contextClick.js +56 -4
- package/lib/core/engine/command/mouse/doubleClick.js +49 -1
- package/lib/core/engine/command/mouse/mouseMove.js +50 -1
- package/lib/core/engine/command/mouse/singleClick.js +165 -129
- package/lib/core/engine/command/navigation.js +6 -6
- package/lib/core/engine/command/select.js +95 -3
- package/lib/core/engine/command/selectorParser.js +58 -0
- package/lib/core/engine/command/set.js +55 -1
- package/lib/core/engine/command/wait.js +41 -2
- package/lib/core/engine/commands.js +550 -42
- package/lib/core/engine/index.js +206 -150
- package/lib/core/engine/iteration.js +269 -137
- package/lib/firefox/networkManager.js +22 -30
- package/lib/firefox/webdriver/builder.js +14 -0
- package/lib/firefox/webdriver/firefox.js +1 -1
- package/lib/safari/har.js +131 -0
- package/lib/safari/native/ios-capture +0 -0
- package/lib/safari/native/ios-capture.m +340 -0
- package/lib/safari/safariInspectorClient.js +322 -0
- package/lib/safari/webdriver/safari.js +303 -13
- package/lib/safari/webkitToCdpAdapter.js +241 -0
- package/lib/support/cli.js +13 -0
- package/lib/support/engineUtils.js +16 -5
- package/lib/support/getViewPort.js +5 -0
- package/lib/support/har/index.js +41 -3
- package/lib/support/usbPower.js +2 -3
- package/lib/video/postprocessing/finetune/addTextToVideo.js +4 -0
- package/lib/video/postprocessing/finetune/getFont.js +3 -3
- package/lib/video/postprocessing/finetune/getTimingMetrics.js +7 -0
- package/lib/video/postprocessing/finetune/index.js +26 -9
- package/lib/video/screenRecording/ios/iosDeviceRecorder.js +109 -0
- package/lib/video/screenRecording/recorder.js +2 -2
- package/lib/video/screenRecording/setOrangeBackground.js +3 -0
- package/package.json +12 -12
- package/types/core/engine/command/addText.d.ts +35 -6
- package/types/core/engine/command/addText.d.ts.map +1 -1
- package/types/core/engine/command/click.d.ts +87 -16
- package/types/core/engine/command/click.d.ts.map +1 -1
- package/types/core/engine/command/commandHelper.d.ts +16 -0
- package/types/core/engine/command/commandHelper.d.ts.map +1 -0
- package/types/core/engine/command/cookie.d.ts +65 -0
- package/types/core/engine/command/cookie.d.ts.map +1 -0
- package/types/core/engine/command/element.d.ts +19 -1
- package/types/core/engine/command/element.d.ts.map +1 -1
- package/types/core/engine/command/javaScript.d.ts +4 -0
- package/types/core/engine/command/javaScript.d.ts.map +1 -1
- package/types/core/engine/command/measure/screenshots.d.ts +15 -0
- package/types/core/engine/command/measure/screenshots.d.ts.map +1 -0
- package/types/core/engine/command/measure/video.d.ts +26 -0
- package/types/core/engine/command/measure/video.d.ts.map +1 -0
- package/types/core/engine/command/measure.d.ts +59 -33
- package/types/core/engine/command/measure.d.ts.map +1 -1
- package/types/core/engine/command/mouse/clickAndHold.d.ts.map +1 -1
- package/types/core/engine/command/mouse/contextClick.d.ts +28 -4
- package/types/core/engine/command/mouse/contextClick.d.ts.map +1 -1
- package/types/core/engine/command/mouse/doubleClick.d.ts +24 -4
- package/types/core/engine/command/mouse/doubleClick.d.ts.map +1 -1
- package/types/core/engine/command/mouse/mouseMove.d.ts +30 -5
- package/types/core/engine/command/mouse/mouseMove.d.ts.map +1 -1
- package/types/core/engine/command/mouse/singleClick.d.ts +50 -13
- package/types/core/engine/command/mouse/singleClick.d.ts.map +1 -1
- package/types/core/engine/command/navigation.d.ts +3 -3
- package/types/core/engine/command/select.d.ts +45 -8
- package/types/core/engine/command/select.d.ts.map +1 -1
- package/types/core/engine/command/selectorParser.d.ts +20 -0
- package/types/core/engine/command/selectorParser.d.ts.map +1 -0
- package/types/core/engine/command/set.d.ts +34 -7
- package/types/core/engine/command/set.d.ts.map +1 -1
- package/types/core/engine/command/wait.d.ts +29 -6
- package/types/core/engine/command/wait.d.ts.map +1 -1
- package/types/core/engine/commands.d.ts +296 -28
- package/types/core/engine/commands.d.ts.map +1 -1
- package/types/support/engineUtils.d.ts.map +1 -1
- package/types/support/getViewPort.d.ts.map +1 -1
- package/types/support/usbPower.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/addTextToVideo.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/getTimingMetrics.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/index.d.ts.map +1 -1
- package/types/video/screenRecording/ios/iosDeviceRecorder.d.ts +28 -0
- package/types/video/screenRecording/ios/iosDeviceRecorder.d.ts.map +1 -0
- package/types/video/screenRecording/recorder.d.ts +2 -2
- package/types/video/screenRecording/recorder.d.ts.map +1 -1
- package/types/video/screenRecording/setOrangeBackground.d.ts.map +1 -1
- package/types/video/video.d.ts +1 -1
- package/types/video/video.d.ts.map +1 -1
- package/visualmetrics/visualmetrics-portable.py +136 -136
- package/lib/video/screenRecording/ios/convertToMp4.js +0 -22
- package/lib/video/screenRecording/ios/iosRecorder.js +0 -68
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Provides functionality to perform click actions on elements in a web page using various selectors.
|
|
3
|
+
* Uses the Selenium Actions API to generate real OS-level mouse events, which means
|
|
4
|
+
* the element must be visible and interactable. If you need to click a hidden element,
|
|
5
|
+
* use {@link JavaScript#run commands.js.run} to trigger a JavaScript click instead.
|
|
3
6
|
*
|
|
4
7
|
* @class
|
|
5
8
|
* @hideconstructor
|
|
6
9
|
*/
|
|
7
10
|
export class Click {
|
|
8
|
-
constructor(browser: any, pageCompleteCheck: any);
|
|
11
|
+
constructor(browser: any, pageCompleteCheck: any, options: any);
|
|
9
12
|
/**
|
|
10
13
|
* @private
|
|
11
14
|
*/
|
|
@@ -14,138 +17,206 @@ export class Click {
|
|
|
14
17
|
* @private
|
|
15
18
|
*/
|
|
16
19
|
private pageCompleteCheck;
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
private options;
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
private _waitForElement;
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
private _andWait;
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
private _clickElement;
|
|
36
|
+
/**
|
|
37
|
+
* Clicks on an element using a unified selector string.
|
|
38
|
+
* Supports CSS selectors (default), and prefix-based strategies:
|
|
39
|
+
* 'id:myId', 'xpath://button', 'text:Submit', 'link:Click here', 'name:email', 'class:btn'.
|
|
40
|
+
*
|
|
41
|
+
* @async
|
|
42
|
+
* @param {string} selector - The selector string. CSS by default, or use a prefix like 'id:', 'xpath:', 'text:', 'link:', 'name:', 'class:'.
|
|
43
|
+
* @param {Object} [options] - Options for the click action.
|
|
44
|
+
* @param {boolean} [options.waitForNavigation=false] - If true, waits for the page complete check after clicking.
|
|
45
|
+
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
46
|
+
* @throws {Error} Throws an error if the element is not found.
|
|
47
|
+
*/
|
|
48
|
+
run(selector: string, options?: {
|
|
49
|
+
waitForNavigation?: boolean;
|
|
50
|
+
}): Promise<void>;
|
|
17
51
|
/**
|
|
18
52
|
* Clicks on an element identified by its class name.
|
|
19
53
|
*
|
|
20
54
|
* @async
|
|
55
|
+
* @private
|
|
21
56
|
* @param {string} className - The class name of the element to click.
|
|
22
57
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
23
58
|
* @throws {Error} Throws an error if the element is not found.
|
|
24
59
|
*/
|
|
25
|
-
byClassName
|
|
60
|
+
private byClassName;
|
|
26
61
|
/**
|
|
27
62
|
* Clicks on an element identified by its class name and waits for the page complete check to finish.
|
|
28
63
|
*
|
|
29
64
|
* @async
|
|
65
|
+
* @private
|
|
30
66
|
* @param {string} className - The class name of the element to click.
|
|
31
67
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
32
68
|
* @throws {Error} Throws an error if the element is not found.
|
|
33
69
|
*/
|
|
34
|
-
byClassNameAndWait
|
|
70
|
+
private byClassNameAndWait;
|
|
35
71
|
/**
|
|
36
72
|
* Clicks on a link whose visible text matches the given string.
|
|
37
73
|
*
|
|
38
74
|
* @async
|
|
75
|
+
* @private
|
|
39
76
|
* @param {string} text - The visible text of the link to click.
|
|
40
77
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
41
78
|
* @throws {Error} Throws an error if the link is not found.
|
|
42
79
|
*/
|
|
43
|
-
byLinkText
|
|
80
|
+
private byLinkText;
|
|
44
81
|
/**
|
|
45
82
|
* Clicks on a link whose visible text matches the given string and waits for the page complete check to finish.
|
|
46
83
|
*
|
|
47
84
|
* @async
|
|
85
|
+
* @private
|
|
48
86
|
* @param {string} text - The visible text of the link to click.
|
|
49
87
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
50
88
|
* @throws {Error} Throws an error if the link is not found.
|
|
51
89
|
*/
|
|
52
|
-
byLinkTextAndWait
|
|
90
|
+
private byLinkTextAndWait;
|
|
53
91
|
/**
|
|
54
92
|
* Clicks on a link whose visible text contains the given substring.
|
|
55
93
|
*
|
|
56
94
|
* @async
|
|
95
|
+
* @private
|
|
57
96
|
* @param {string} text - The substring of the visible text of the link to click.
|
|
58
97
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
59
98
|
* @throws {Error} Throws an error if the link is not found.
|
|
60
99
|
*/
|
|
61
|
-
byPartialLinkText
|
|
100
|
+
private byPartialLinkText;
|
|
62
101
|
/**
|
|
63
102
|
* Clicks on a link whose visible text contains the given substring and waits for the page complete check to finish.
|
|
64
103
|
*
|
|
65
104
|
* @async
|
|
105
|
+
* @private
|
|
66
106
|
* @param {string} text - The substring of the visible text of the link to click.
|
|
67
107
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
68
108
|
* @throws {Error} Throws an error if the link is not found.
|
|
69
109
|
*/
|
|
70
|
-
byPartialLinkTextAndWait
|
|
110
|
+
private byPartialLinkTextAndWait;
|
|
111
|
+
/**
|
|
112
|
+
* Clicks on an element whose visible text matches the given string.
|
|
113
|
+
* This works on any element type, not just links.
|
|
114
|
+
*
|
|
115
|
+
* @async
|
|
116
|
+
* @private
|
|
117
|
+
* @param {string} text - The visible text of the element to click.
|
|
118
|
+
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
119
|
+
* @throws {Error} Throws an error if the element is not found.
|
|
120
|
+
*/
|
|
121
|
+
private byText;
|
|
122
|
+
/**
|
|
123
|
+
* Clicks on an element whose visible text matches the given string and waits for the page complete check to finish.
|
|
124
|
+
* This works on any element type, not just links.
|
|
125
|
+
*
|
|
126
|
+
* @async
|
|
127
|
+
* @private
|
|
128
|
+
* @param {string} text - The visible text of the element to click.
|
|
129
|
+
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
130
|
+
* @throws {Error} Throws an error if the element is not found.
|
|
131
|
+
*/
|
|
132
|
+
private byTextAndWait;
|
|
71
133
|
/**
|
|
72
134
|
* Clicks on an element that matches a given XPath selector.
|
|
73
135
|
*
|
|
74
136
|
* @async
|
|
137
|
+
* @private
|
|
75
138
|
* @param {string} xpath - The XPath selector of the element to click.
|
|
76
139
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
77
140
|
* @throws {Error} Throws an error if the element is not found.
|
|
78
141
|
*/
|
|
79
|
-
byXpath
|
|
142
|
+
private byXpath;
|
|
80
143
|
/**
|
|
81
144
|
* Clicks on an element that matches a given XPath selector and waits for the page complete check to finish.
|
|
82
145
|
*
|
|
83
146
|
* @async
|
|
147
|
+
* @private
|
|
84
148
|
* @param {string} xpath - The XPath selector of the element to click.
|
|
85
149
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
86
150
|
* @throws {Error} Throws an error if the element is not found.
|
|
87
151
|
*/
|
|
88
|
-
byXpathAndWait
|
|
152
|
+
private byXpathAndWait;
|
|
89
153
|
/**
|
|
90
154
|
* Clicks on an element located by evaluating a JavaScript expression.
|
|
91
155
|
*
|
|
92
156
|
* @async
|
|
157
|
+
* @private
|
|
93
158
|
* @param {string} js - The JavaScript expression that evaluates to an element or list of elements.
|
|
94
159
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
95
160
|
* @throws {Error} Throws an error if the element is not found.
|
|
96
161
|
*/
|
|
97
|
-
byJs
|
|
162
|
+
private byJs;
|
|
98
163
|
/**
|
|
99
164
|
* Clicks on an element located by evaluating a JavaScript expression and waits for the page complete check to finish.
|
|
100
165
|
*
|
|
101
166
|
* @async
|
|
167
|
+
* @private
|
|
102
168
|
* @param {string} js - The JavaScript expression that evaluates to an element or list of elements.
|
|
103
169
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
104
170
|
* @throws {Error} Throws an error if the element is not found.
|
|
105
171
|
*/
|
|
106
|
-
byJsAndWait
|
|
172
|
+
private byJsAndWait;
|
|
107
173
|
/**
|
|
108
174
|
* Clicks on an element located by its ID.
|
|
109
175
|
*
|
|
110
176
|
* @async
|
|
177
|
+
* @private
|
|
111
178
|
* @param {string} id - The ID of the element to click.
|
|
112
179
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
113
180
|
* @throws {Error} Throws an error if the element is not found.
|
|
114
181
|
*/
|
|
115
|
-
byId
|
|
182
|
+
private byId;
|
|
116
183
|
/**
|
|
117
184
|
* Clicks on an element located by its name attribute.
|
|
118
185
|
*
|
|
119
186
|
* @async
|
|
187
|
+
* @private
|
|
120
188
|
* @param {string} name - The name attribute of the element to click.
|
|
121
189
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
122
190
|
* @throws {Error} Throws an error if the element is not found.
|
|
123
191
|
*/
|
|
124
|
-
byName
|
|
192
|
+
private byName;
|
|
125
193
|
/**
|
|
126
194
|
* Click on link located by the ID attribute. Uses document.getElementById() to find the element. And wait for page complete check to finish.
|
|
195
|
+
* @private
|
|
127
196
|
* @param {string} id
|
|
128
197
|
* @returns {Promise<void>} Promise object represents when the element has been clicked and the pageCompleteCheck has finished.
|
|
129
198
|
* @throws Will throw an error if the element is not found
|
|
130
199
|
*/
|
|
131
|
-
byIdAndWait
|
|
200
|
+
private byIdAndWait;
|
|
132
201
|
/**
|
|
133
202
|
* Clicks on an element located by its CSS selector.
|
|
134
203
|
*
|
|
135
204
|
* @async
|
|
205
|
+
* @private
|
|
136
206
|
* @param {string} selector - The CSS selector of the element to click.
|
|
137
207
|
* @returns {Promise<void>} A promise that resolves when the click action is performed.
|
|
138
208
|
* @throws {Error} Throws an error if the element is not found.
|
|
139
209
|
*/
|
|
140
|
-
bySelector
|
|
210
|
+
private bySelector;
|
|
141
211
|
/**
|
|
142
212
|
* Clicks on an element located by its CSS selector and waits for the page complete check to finish.
|
|
143
213
|
*
|
|
144
214
|
* @async
|
|
215
|
+
* @private
|
|
145
216
|
* @param {string} selector - The CSS selector of the element to click.
|
|
146
217
|
* @returns {Promise<void>} A promise that resolves when the click action and page complete check are finished.
|
|
147
218
|
* @throws {Error} Throws an error if the element is not found.
|
|
148
219
|
*/
|
|
149
|
-
bySelectorAndWait
|
|
220
|
+
private bySelectorAndWait;
|
|
150
221
|
}
|
|
151
222
|
//# sourceMappingURL=click.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/click.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/click.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH;IACE,gEAaC;IAZC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,gBAAsB;IAGxB;;OAEG;IACH,wBAKC;IAED;;OAEG;IACH,iBAMC;IAED;;OAEG;IACH,sBAIC;IAED;;;;;;;;;;;OAWG;IACH,cANW,MAAM,YAEd;QAA0B,iBAAiB,GAAnC,OAAO;KACf,GAAU,OAAO,CAAC,IAAI,CAAC,CAoBzB;IAED;;;;;;;;OAQG;IACH,oBAcC;IAED;;;;;;;;OAQG;IACH,2BAEC;IAED;;;;;;;;OAQG;IACH,mBAQC;IAED;;;;;;;;OAQG;IACH,0BAQC;IAED;;;;;;;;OAQG;IACH,0BAQC;IAED;;;;;;;;OAQG;IACH,iCAQC;IAED;;;;;;;;;OASG;IACH,eAQC;IAED;;;;;;;;;OASG;IACH,sBAQC;IAED;;;;;;;;OAQG;IACH,gBAcC;IACD;;;;;;;;OAQG;IACH,uBAEC;IAED;;;;;;;;OAQG;IACH,aAeC;IAED;;;;;;;;OAQG;IACH,oBAEC;IAED;;;;;;;;OAQG;IACH,aAcC;IAED;;;;;;;;OAQG;IACH,eAcC;IAED;;;;;;OAMG;IACH,oBAEC;IAED;;;;;;;;OAQG;IACH,mBAcC;IAED;;;;;;;;OAQG;IACH,0BAEC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared error handling wrapper for command methods.
|
|
3
|
+
*
|
|
4
|
+
* Most command methods follow the same try/catch pattern:
|
|
5
|
+
* log.error + log.verbose + throw new Error. This helper
|
|
6
|
+
* eliminates that boilerplate.
|
|
7
|
+
*
|
|
8
|
+
* @param {Object} log - The logger instance.
|
|
9
|
+
* @param {string} errorMessage - printf-style message (with %s placeholder).
|
|
10
|
+
* @param {string|undefined} identifier - Value to interpolate into the message, or undefined if none.
|
|
11
|
+
* @param {Function} fn - The async function to execute.
|
|
12
|
+
* @param {Object} [browser] - Optional browser instance. When provided, the current page URL is appended to the error message.
|
|
13
|
+
* @returns {Promise<*>} The return value of fn.
|
|
14
|
+
*/
|
|
15
|
+
export function executeCommand(log: any, errorMessage: string, identifier: string | undefined, fn: Function, browser?: any): Promise<any>;
|
|
16
|
+
//# sourceMappingURL=commandHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandHelper.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/commandHelper.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,uDANW,MAAM,cACN,MAAM,GAAC,SAAS,gCAGd,OAAO,CAAC,GAAC,CAAC,CAgCtB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides functionality to manage browser cookies.
|
|
3
|
+
*
|
|
4
|
+
* @class
|
|
5
|
+
* @hideconstructor
|
|
6
|
+
*/
|
|
7
|
+
export class Cookie {
|
|
8
|
+
constructor(browser: any);
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
private driver;
|
|
13
|
+
/**
|
|
14
|
+
* Gets all cookies for the current page.
|
|
15
|
+
*
|
|
16
|
+
* @async
|
|
17
|
+
* @returns {Promise<Array>} An array of cookie objects.
|
|
18
|
+
*/
|
|
19
|
+
getAll(): Promise<any[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a specific cookie by name.
|
|
22
|
+
*
|
|
23
|
+
* @async
|
|
24
|
+
* @param {string} name - The name of the cookie.
|
|
25
|
+
* @returns {Promise<Object|undefined>} The cookie object, or undefined if not found.
|
|
26
|
+
*/
|
|
27
|
+
get(name: string): Promise<any | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Sets a cookie.
|
|
30
|
+
*
|
|
31
|
+
* @async
|
|
32
|
+
* @param {string} name - The name of the cookie.
|
|
33
|
+
* @param {string} value - The value of the cookie.
|
|
34
|
+
* @param {Object} [options] - Optional cookie properties.
|
|
35
|
+
* @param {string} [options.domain] - The domain the cookie is visible to.
|
|
36
|
+
* @param {string} [options.path] - The cookie path.
|
|
37
|
+
* @param {boolean} [options.secure] - Whether the cookie is secure.
|
|
38
|
+
* @param {boolean} [options.httpOnly] - Whether the cookie is HTTP only.
|
|
39
|
+
* @param {Date} [options.expiry] - When the cookie expires.
|
|
40
|
+
* @returns {Promise<void>}
|
|
41
|
+
*/
|
|
42
|
+
set(name: string, value: string, options?: {
|
|
43
|
+
domain?: string;
|
|
44
|
+
path?: string;
|
|
45
|
+
secure?: boolean;
|
|
46
|
+
httpOnly?: boolean;
|
|
47
|
+
expiry?: Date;
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes a specific cookie by name.
|
|
51
|
+
*
|
|
52
|
+
* @async
|
|
53
|
+
* @param {string} name - The name of the cookie to delete.
|
|
54
|
+
* @returns {Promise<void>}
|
|
55
|
+
*/
|
|
56
|
+
delete(name: string): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Deletes all cookies for the current page.
|
|
59
|
+
*
|
|
60
|
+
* @async
|
|
61
|
+
* @returns {Promise<void>}
|
|
62
|
+
*/
|
|
63
|
+
deleteAll(): Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=cookie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/cookie.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH;IACE,0BAKC;IAJC;;OAEG;IACH,eAAiC;IAGnC;;;;;OAKG;IACH,UAFa,OAAO,OAAO,CAI1B;IAED;;;;;;OAMG;IACH,UAHW,MAAM,GACJ,OAAO,CAAC,MAAO,SAAS,CAAC,CAQrC;IAED;;;;;;;;;;;;;OAaG;IACH,UAVW,MAAM,SACN,MAAM,YAEd;QAAyB,MAAM,GAAvB,MAAM;QACW,IAAI,GAArB,MAAM;QACY,MAAM,GAAxB,OAAO;QACW,QAAQ,GAA1B,OAAO;QACQ,MAAM,GAArB,IAAI;KACZ,GAAU,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;;;;OAMG;IACH,aAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAKzB;IAED;;;;;OAKG;IACH,aAFa,OAAO,CAAC,IAAI,CAAC,CAKzB;CACF"}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
* @hideconstructor
|
|
5
5
|
*/
|
|
6
6
|
export class Element {
|
|
7
|
-
constructor(browser: any);
|
|
7
|
+
constructor(browser: any, options: any);
|
|
8
8
|
/**
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
11
|
private driver;
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
private options;
|
|
12
16
|
/**
|
|
13
17
|
* Finds an element by its CSS selector.
|
|
14
18
|
*
|
|
@@ -44,6 +48,20 @@ export class Element {
|
|
|
44
48
|
* @returns {Promise<WebElement>} A promise that resolves to the WebElement found.
|
|
45
49
|
*/
|
|
46
50
|
getByName(name: string): Promise<WebElement>;
|
|
51
|
+
/**
|
|
52
|
+
* Finds an element using a CSS selector, with optional waiting and visibility check.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} selector - The CSS selector of the element.
|
|
55
|
+
* @param {Object} [options] - Options for finding the element.
|
|
56
|
+
* @param {number} [options.timeout] - Maximum time in milliseconds to wait for the element. Defaults to the configured --timeouts.elementWait value.
|
|
57
|
+
* @param {boolean} [options.visible=false] - If true, waits for the element to be visible, not just present.
|
|
58
|
+
* @returns {Promise<WebElement>} A promise that resolves to the WebElement found.
|
|
59
|
+
* @throws {Error} Throws an error if the element is not found within the timeout.
|
|
60
|
+
*/
|
|
61
|
+
find(selector: string, options?: {
|
|
62
|
+
timeout?: number;
|
|
63
|
+
visible?: boolean;
|
|
64
|
+
}): Promise<WebElement>;
|
|
47
65
|
}
|
|
48
66
|
import { WebElement } from 'selenium-webdriver';
|
|
49
67
|
//# sourceMappingURL=element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/element.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;IACE,
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/element.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;IACE,wCASC;IARC;;OAEG;IACH,eAAiC;IACjC;;OAEG;IACH,gBAAsB;IAGxB;;;;;OAKG;IACH,eAHW,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;;;;OAKG;IACH,YAHW,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;;;;OAKG;IACH,kBAHW,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;;;;OAKG;IACH,0BAHW,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;;;;OAKG;IACH,gBAHW,MAAM,GACJ,OAAO,CAAC,UAAU,CAAC,CAI/B;IAED;;;;;;;;;OASG;IACH,eAPW,MAAM,YAEd;QAAyB,OAAO,GAAxB,MAAM;QACY,OAAO,GAAzB,OAAO;KACf,GAAU,OAAO,CAAC,UAAU,CAAC,CAsB/B;CACF;2BAlGyC,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"javaScript.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/javaScript.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"javaScript.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/javaScript.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH;IACE,kDASC;IARC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAG5C;;OAEG;IACH,iBAGC;IAED;;;;;;;OAOG;IACH,QAJW,MAAM,GACJ,OAAO,CAAC,GAAC,CAAC,CAOtB;IAED;;;;;;;OAOG;IACH,eAJW,MAAM,GACJ,OAAO,CAAC,GAAC,CAAC,CAKtB;IAED;;;;;;;OAOG;IACH,kBAJW,MAAM,GACJ,OAAO,CAAC,GAAC,CAAC,CAetB;IAED;;;;;;;OAOG;IACH,yBAJW,MAAM,GACJ,OAAO,CAAC,GAAC,CAAC,CAKtB;IAED;;;;;;;OAOG;IACH,uBAJW,MAAM,GACJ,OAAO,CAAC,GAAC,CAAC,CAetB;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles screenshot capture during measurement collection.
|
|
3
|
+
* @class
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export class MeasureScreenshots {
|
|
7
|
+
constructor(browser: any, screenshotManager: any, options: any);
|
|
8
|
+
browser: any;
|
|
9
|
+
screenshotManager: any;
|
|
10
|
+
options: any;
|
|
11
|
+
afterPageCompleteCheck(url: any, index: any): Promise<void>;
|
|
12
|
+
layoutShift(url: any, index: any): Promise<void>;
|
|
13
|
+
largestContentfulPaint(url: any, index: any): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=screenshots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenshots.d.ts","sourceRoot":"","sources":["../../../../../lib/core/engine/command/measure/screenshots.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IACE,gEAIC;IAHC,aAAsB;IACtB,uBAA0C;IAC1C,aAAsB;IAGxB,4DAgBC;IAED,iDA+BC;IAED,4DA4CC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles video recording during measurement.
|
|
3
|
+
* @class
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export class MeasureVideo {
|
|
7
|
+
constructor(storageManager: any, browser: any, videos: any, options: any);
|
|
8
|
+
storageManager: any;
|
|
9
|
+
browser: any;
|
|
10
|
+
videos: any;
|
|
11
|
+
options: any;
|
|
12
|
+
recordVideo: any;
|
|
13
|
+
ANDROID_DELAY_TIME: any;
|
|
14
|
+
IOS_DELAY_TIME: any;
|
|
15
|
+
DESKTOP_DELAY_TIME: any;
|
|
16
|
+
start(numberOfMeasuredPages: any, index: any): Promise<any>;
|
|
17
|
+
video: Video;
|
|
18
|
+
stop(url: any): Promise<void>;
|
|
19
|
+
getRecordingMetadata(): {
|
|
20
|
+
recordingStartTime: number;
|
|
21
|
+
timeToFirstFrame: number;
|
|
22
|
+
};
|
|
23
|
+
shouldRecord(): boolean;
|
|
24
|
+
}
|
|
25
|
+
import { Video } from '../../../../video/video.js';
|
|
26
|
+
//# sourceMappingURL=video.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../lib/core/engine/command/measure/video.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE,0EAiBC;IAhBC,oBAAoC;IACpC,aAAsB;IACtB,YAAoB;IACpB,aAAsB;IACtB,iBAAyD;IACzD,wBAIC;IACD,oBAAsE;IACtE,wBAIC;IAGH,4DAwBC;IAvBC,aAAuE;IAyBzE,8BAKC;IAED;;;MAeC;IAED,wBAEC;CACF;sBApFqB,4BAA4B"}
|
|
@@ -6,7 +6,21 @@
|
|
|
6
6
|
* @hideconstructor
|
|
7
7
|
*/
|
|
8
8
|
export class Measure {
|
|
9
|
-
constructor(browser
|
|
9
|
+
constructor({ browser, index, pageCompleteCheck, result, engineDelegate, storageManager, videos, scriptsByCategory, asyncScriptsByCategory, postURLScripts, context, screenshotManager, options }: {
|
|
10
|
+
browser: any;
|
|
11
|
+
index: any;
|
|
12
|
+
pageCompleteCheck: any;
|
|
13
|
+
result: any;
|
|
14
|
+
engineDelegate: any;
|
|
15
|
+
storageManager: any;
|
|
16
|
+
videos: any;
|
|
17
|
+
scriptsByCategory: any;
|
|
18
|
+
asyncScriptsByCategory: any;
|
|
19
|
+
postURLScripts: any;
|
|
20
|
+
context: any;
|
|
21
|
+
screenshotManager: any;
|
|
22
|
+
options: any;
|
|
23
|
+
});
|
|
10
24
|
/**
|
|
11
25
|
* @private
|
|
12
26
|
*/
|
|
@@ -31,22 +45,10 @@ export class Measure {
|
|
|
31
45
|
* @private
|
|
32
46
|
*/
|
|
33
47
|
private options;
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
private screenshotManager;
|
|
38
48
|
/**
|
|
39
49
|
* @private
|
|
40
50
|
*/
|
|
41
51
|
private storageManager;
|
|
42
|
-
/**
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
private recordVideo;
|
|
46
|
-
/**
|
|
47
|
-
* @private
|
|
48
|
-
*/
|
|
49
|
-
private videos;
|
|
50
52
|
/**
|
|
51
53
|
* @private
|
|
52
54
|
*/
|
|
@@ -86,26 +88,11 @@ export class Measure {
|
|
|
86
88
|
/**
|
|
87
89
|
* @private
|
|
88
90
|
*/
|
|
89
|
-
private
|
|
90
|
-
/**
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
private IOS_DELAY_TIME;
|
|
91
|
+
private measureVideo;
|
|
94
92
|
/**
|
|
95
93
|
* @private
|
|
96
94
|
*/
|
|
97
|
-
private
|
|
98
|
-
/**
|
|
99
|
-
* Have a consistent way of starting the video
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
private _startVideo;
|
|
103
|
-
video: Video;
|
|
104
|
-
/**
|
|
105
|
-
* Have a consistent way of starting stopping the video
|
|
106
|
-
* @private
|
|
107
|
-
*/
|
|
108
|
-
private _stopVideo;
|
|
95
|
+
private screenshots;
|
|
109
96
|
/**
|
|
110
97
|
* Have a consistent way of adding an error
|
|
111
98
|
* @private
|
|
@@ -161,6 +148,23 @@ export class Measure {
|
|
|
161
148
|
* @since 21.2.0
|
|
162
149
|
*/
|
|
163
150
|
stopAsError(errorMessage: string): Promise<any>;
|
|
151
|
+
/**
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
private setClick;
|
|
155
|
+
_click: any;
|
|
156
|
+
/**
|
|
157
|
+
* Starts a measurement, clicks on an element matching the given CSS selector,
|
|
158
|
+
* waits for the page complete check, and stops the measurement. This is
|
|
159
|
+
* a shortcut for the common pattern of measure.start/click/measure.stop.
|
|
160
|
+
*
|
|
161
|
+
* @async
|
|
162
|
+
* @param {string} alias - The friendly name for this measurement.
|
|
163
|
+
* @param {string} selector - The CSS selector of the element to click.
|
|
164
|
+
* @returns {Promise} A promise that resolves with the collected metrics data.
|
|
165
|
+
* @throws {Error} Throws an error if the element is not found or the measurement fails.
|
|
166
|
+
*/
|
|
167
|
+
clickAndMeasure(alias: string, selector: string): Promise<any>;
|
|
164
168
|
/**
|
|
165
169
|
* Stops the measurement process, collects metrics, and handles any post-measurement tasks.
|
|
166
170
|
* It finalizes the URL being tested, manages any URL-specific metadata, stops any ongoing video recordings,
|
|
@@ -194,10 +198,32 @@ export class Measure {
|
|
|
194
198
|
*/
|
|
195
199
|
addObject(object: any): void;
|
|
196
200
|
/**
|
|
197
|
-
*
|
|
198
201
|
* @private
|
|
199
202
|
*/
|
|
200
|
-
private
|
|
203
|
+
private _resolveAlias;
|
|
204
|
+
/**
|
|
205
|
+
* @private
|
|
206
|
+
*/
|
|
207
|
+
private _attachVideoMetadata;
|
|
208
|
+
/**
|
|
209
|
+
* @private
|
|
210
|
+
*/
|
|
211
|
+
private _collectBrowserScripts;
|
|
212
|
+
/**
|
|
213
|
+
* @private
|
|
214
|
+
*/
|
|
215
|
+
private _filterUserTimings;
|
|
216
|
+
/**
|
|
217
|
+
* @private
|
|
218
|
+
*/
|
|
219
|
+
private _collectAndroidProcessTime;
|
|
220
|
+
/**
|
|
221
|
+
* @private
|
|
222
|
+
*/
|
|
223
|
+
private _runPostURLScripts;
|
|
224
|
+
/**
|
|
225
|
+
* @private
|
|
226
|
+
*/
|
|
227
|
+
private _collect;
|
|
201
228
|
}
|
|
202
|
-
import { Video } from '../../../video/video.js';
|
|
203
229
|
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"AA6BA;;;;;;GAMG;AACH;IACE;;;;;;;;;;;;;;OAgGC;IAjFC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,+BAAoD;IACpD;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,8BAA8B;IAC9B;;OAEG;IACH,6BAA6B;IAC7B;;OAEG;IACH,uBAA2B;IAC3B;;OAEG;IACH,mBAAoB;IACpB;;OAEG;IACH,gBAA6D;IAC7D;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,oBAIC;IAGH;;;OAGG;IACH,eAyBC;IAED;;;OAGG;IACH,iBAQC;IAED;;;;;;;;;;;;OAYG;IACH,kBAmBC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBALW,MAAM,kBACN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CA2FzB;IAED;;;;;;;;OAQG;IACH,0BAJW,MAAM,gBAiBhB;IAED;;OAEG;IACH,iBAEC;IADC,YAAmB;IAGrB;;;;;;;;;;OAUG;IACH,uBALW,MAAM,YACN,MAAM,gBAQhB;IAED;;;;;;;;;OASG;IACH,qBAJW,MAAM,gBAyEhB;IAED;;;;;;;;OAQG;IACH,UAJW,MAAM,SACN,GAAC,QAWX;IAED;;;;;;;;;OASG;IACH,6BAOC;IAED;;OAEG;IACH,sBAYC;IAED;;OAEG;IACH,6BAQC;IAED;;OAEG;IACH,+BAaC;IAED;;OAEG;IACH,2BAkBC;IAED;;OAEG;IACH,mCAqBC;IAED;;OAEG;IACH,2BAIC;IAED;;OAEG;IACH,iBA2BC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickAndHold.d.ts","sourceRoot":"","sources":["../../../../../lib/core/engine/command/mouse/clickAndHold.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH;IACE,0BASC;IARC;;OAEG;IACH,eAAiC;IACjC;;OAEG;IACH,gBAAmD;IAGrD;;;;;;;OAOG;IACH,eAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAczB;IAED;;;;;;;OAOG;IACH,qBAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;OAMG;IACH,YAHa,OAAO,CAAC,IAAI,CAAC,CAWzB;IAED;;;;;;;;OAQG;IACH,iBALW,MAAM,QACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAgBzB;IAED;;;;;;;OAOG;IACH,sBAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"clickAndHold.d.ts","sourceRoot":"","sources":["../../../../../lib/core/engine/command/mouse/clickAndHold.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH;IACE,0BASC;IARC;;OAEG;IACH,eAAiC;IACjC;;OAEG;IACH,gBAAmD;IAGrD;;;;;;;OAOG;IACH,eAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAczB;IAED;;;;;;;OAOG;IACH,qBAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;OAMG;IACH,YAHa,OAAO,CAAC,IAAI,CAAC,CAWzB;IAED;;;;;;;;OAQG;IACH,iBALW,MAAM,QACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAgBzB;IAED;;;;;;;OAOG;IACH,sBAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAazB;IAED;;;;;;;OAOG;IACH,4BAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAazB;IAED;;;;;;;;OAQG;IACH,wBALW,MAAM,QACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;CACF"}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* @hideconstructor
|
|
6
6
|
*/
|
|
7
7
|
export class ContextClick {
|
|
8
|
-
constructor(browser: any);
|
|
8
|
+
constructor(browser: any, options: any);
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
private browser;
|
|
9
13
|
/**
|
|
10
14
|
* @private
|
|
11
15
|
*/
|
|
@@ -15,6 +19,24 @@ export class ContextClick {
|
|
|
15
19
|
*/
|
|
16
20
|
private actions;
|
|
17
21
|
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
private options;
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
private _waitForElement;
|
|
29
|
+
/**
|
|
30
|
+
* Performs a context click (right-click) on an element using a unified selector string.
|
|
31
|
+
*
|
|
32
|
+
* @async
|
|
33
|
+
* @param {string} selector - The selector string. CSS by default, or use a prefix.
|
|
34
|
+
* @returns {Promise<void>}
|
|
35
|
+
* @throws {Error} Throws an error if the element is not found.
|
|
36
|
+
*/
|
|
37
|
+
run(selector: string): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* @private
|
|
18
40
|
* Performs a context click (right-click) on an element that matches a given XPath selector.
|
|
19
41
|
*
|
|
20
42
|
* @async
|
|
@@ -22,8 +44,9 @@ export class ContextClick {
|
|
|
22
44
|
* @returns {Promise<void>} A promise that resolves when the context click action is performed.
|
|
23
45
|
* @throws {Error} Throws an error if the element is not found.
|
|
24
46
|
*/
|
|
25
|
-
byXpath
|
|
47
|
+
private byXpath;
|
|
26
48
|
/**
|
|
49
|
+
* @private
|
|
27
50
|
* Performs a context click (right-click) on an element that matches a given CSS selector.
|
|
28
51
|
*
|
|
29
52
|
* @async
|
|
@@ -31,14 +54,15 @@ export class ContextClick {
|
|
|
31
54
|
* @returns {Promise<void>} A promise that resolves when the context click action is performed.
|
|
32
55
|
* @throws {Error} Throws an error if the element is not found.
|
|
33
56
|
*/
|
|
34
|
-
bySelector
|
|
57
|
+
private bySelector;
|
|
35
58
|
/**
|
|
59
|
+
* @private
|
|
36
60
|
* Performs a context click (right-click) at the current cursor position.
|
|
37
61
|
*
|
|
38
62
|
* @async
|
|
39
63
|
* @returns {Promise<void>} A promise that resolves when the context click action is performed.
|
|
40
64
|
* @throws {Error} Throws an error if the context click action cannot be performed.
|
|
41
65
|
*/
|
|
42
|
-
atCursor
|
|
66
|
+
private atCursor;
|
|
43
67
|
}
|
|
44
68
|
//# sourceMappingURL=contextClick.d.ts.map
|