appium-remote-debugger 15.2.8 → 15.2.10
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 +12 -0
- package/build/lib/mixins/connect.d.ts +47 -31
- package/build/lib/mixins/connect.d.ts.map +1 -1
- package/build/lib/mixins/connect.js +105 -86
- package/build/lib/mixins/connect.js.map +1 -1
- package/build/lib/mixins/message-handlers.d.ts +63 -43
- package/build/lib/mixins/message-handlers.d.ts.map +1 -1
- package/build/lib/mixins/message-handlers.js +74 -57
- package/build/lib/mixins/message-handlers.js.map +1 -1
- package/build/lib/mixins/navigate.d.ts +39 -27
- package/build/lib/mixins/navigate.d.ts.map +1 -1
- package/build/lib/mixins/navigate.js +31 -31
- package/build/lib/mixins/navigate.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/mixins/{connect.js → connect.ts} +153 -113
- package/lib/mixins/message-handlers.ts +272 -0
- package/lib/mixins/{navigate.js → navigate.ts} +44 -41
- package/package.json +2 -2
- package/lib/mixins/message-handlers.js +0 -224
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [15.2.10](https://github.com/appium/appium-remote-debugger/compare/v15.2.9...v15.2.10) (2026-01-20)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* Migrate various mixins to typescript (part 1) ([#464](https://github.com/appium/appium-remote-debugger/issues/464)) ([5398180](https://github.com/appium/appium-remote-debugger/commit/539818017a9f312ee5bca183323140d94e20e421))
|
|
6
|
+
|
|
7
|
+
## [15.2.9](https://github.com/appium/appium-remote-debugger/compare/v15.2.8...v15.2.9) (2025-12-22)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* bump teen_process ([#463](https://github.com/appium/appium-remote-debugger/issues/463)) ([ae30d12](https://github.com/appium/appium-remote-debugger/commit/ae30d128bcd6f62c5730e7f14bf39061aac07711))
|
|
12
|
+
|
|
1
13
|
## [15.2.8](https://github.com/appium/appium-remote-debugger/compare/v15.2.7...v15.2.8) (2025-12-18)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous Chores
|
|
@@ -1,48 +1,64 @@
|
|
|
1
|
+
import type { RemoteDebugger } from '../remote-debugger';
|
|
2
|
+
import type { AppDict, Page, AppIdKey, PageIdKey } from '../types';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
4
|
+
* Sends a connection key request to the Web Inspector.
|
|
5
|
+
* This method only waits to ensure the socket connection works, as the response
|
|
6
|
+
* from Web Inspector can take a long time.
|
|
5
7
|
*/
|
|
6
|
-
export function setConnectionKey(this:
|
|
8
|
+
export declare function setConnectionKey(this: RemoteDebugger): Promise<void>;
|
|
7
9
|
/**
|
|
10
|
+
* Establishes a connection to the remote debugger and initializes the RPC client.
|
|
11
|
+
* Sets up event listeners for debugger-level events and waits for applications
|
|
12
|
+
* to be reported if a timeout is specified.
|
|
8
13
|
*
|
|
9
|
-
* @
|
|
10
|
-
*
|
|
11
|
-
*
|
|
14
|
+
* @param timeout - Maximum time in milliseconds to wait for applications to be reported.
|
|
15
|
+
* Defaults to 0 (no waiting). If provided, the method will wait up to
|
|
16
|
+
* this duration for applications to appear in the app dictionary.
|
|
17
|
+
* @returns A promise that resolves to the application dictionary containing all
|
|
18
|
+
* connected applications.
|
|
12
19
|
*/
|
|
13
|
-
export function connect(this:
|
|
20
|
+
export declare function connect(this: RemoteDebugger, timeout?: number): Promise<AppDict>;
|
|
14
21
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @returns {Promise<void>}
|
|
22
|
+
* Disconnects from the remote debugger by closing the RPC client connection,
|
|
23
|
+
* emitting a disconnect event, and performing cleanup via teardown.
|
|
18
24
|
*/
|
|
19
|
-
export function disconnect(this:
|
|
25
|
+
export declare function disconnect(this: RemoteDebugger): Promise<void>;
|
|
20
26
|
/**
|
|
27
|
+
* Selects an application from the available connected applications.
|
|
28
|
+
* Searches for an app matching the provided URL and bundle IDs, then returns
|
|
29
|
+
* all pages from the selected application.
|
|
21
30
|
*
|
|
22
|
-
* @
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @param
|
|
26
|
-
*
|
|
31
|
+
* @param currentUrl - Optional URL to match when selecting an application.
|
|
32
|
+
* If provided, the method will try to find an app containing
|
|
33
|
+
* a page with this URL.
|
|
34
|
+
* @param maxTries - Maximum number of retry attempts when searching for an app.
|
|
35
|
+
* Defaults to SELECT_APP_RETRIES (20).
|
|
36
|
+
* @param ignoreAboutBlankUrl - If true, pages with 'about:blank' URL will be
|
|
37
|
+
* excluded from the results. Defaults to false.
|
|
38
|
+
* @returns A promise that resolves to an array of Page objects from the selected
|
|
39
|
+
* application. Returns an empty array if no applications are connected.
|
|
27
40
|
*/
|
|
28
|
-
export function selectApp(this:
|
|
41
|
+
export declare function selectApp(this: RemoteDebugger, currentUrl?: string | null, maxTries?: number, ignoreAboutBlankUrl?: boolean): Promise<Page[]>;
|
|
29
42
|
/**
|
|
43
|
+
* Selects a specific page within an application and forwards socket setup.
|
|
44
|
+
* Optionally waits for the page to be ready based on the page load strategy.
|
|
30
45
|
*
|
|
31
|
-
* @
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
*
|
|
46
|
+
* @param appIdKey - The application identifier key. Will be prefixed with 'PID:'
|
|
47
|
+
* if not already present.
|
|
48
|
+
* @param pageIdKey - The page identifier key to select.
|
|
49
|
+
* @param skipReadyCheck - If true, skips the page readiness check. Defaults to false.
|
|
50
|
+
* When false, the method will wait for the page to be ready
|
|
51
|
+
* according to the configured page load strategy.
|
|
36
52
|
*/
|
|
37
|
-
export function selectPage(this:
|
|
53
|
+
export declare function selectPage(this: RemoteDebugger, appIdKey: AppIdKey, pageIdKey: PageIdKey, skipReadyCheck?: boolean): Promise<void>;
|
|
38
54
|
/**
|
|
39
|
-
*
|
|
40
|
-
* When bundleIds includes a wildcard ('*'), returns all
|
|
55
|
+
* Finds app keys based on assigned bundle IDs from the app dictionary.
|
|
56
|
+
* When bundleIds includes a wildcard ('*'), returns all app keys in the app dictionary.
|
|
57
|
+
* Also handles proxy applications that may act on behalf of other bundle IDs.
|
|
41
58
|
*
|
|
42
|
-
* @
|
|
43
|
-
*
|
|
44
|
-
* @returns
|
|
59
|
+
* @param bundleIds - Array of bundle identifiers to match against. If the array
|
|
60
|
+
* contains a wildcard ('*'), all apps will be returned.
|
|
61
|
+
* @returns Array of application identifier keys that match the provided bundle IDs.
|
|
45
62
|
*/
|
|
46
|
-
export function getPossibleDebuggerAppKeys(this:
|
|
47
|
-
export type RemoteDebugger = import("../remote-debugger").RemoteDebugger;
|
|
63
|
+
export declare function getPossibleDebuggerAppKeys(this: RemoteDebugger, bundleIds: string[]): string[];
|
|
48
64
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../lib/mixins/connect.
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../lib/mixins/connect.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAW,MAAM,UAAU,CAAC;AAa5E;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAM1E;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,GAAE,MAA+B,GAAG,OAAO,CAAC,OAAO,CAAC,CA8C9G;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,SAAS,CAC7B,IAAI,EAAE,cAAc,EACpB,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,QAAQ,GAAE,MAA2B,EACrC,mBAAmB,GAAE,OAAe,GACnC,OAAO,CAAC,IAAI,EAAE,CAAC,CAoCjB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAiD9F"}
|
|
@@ -27,9 +27,9 @@ const SAFARI_VIEW_PROCESS_BUNDLE_ID = 'process-SafariViewService';
|
|
|
27
27
|
const SAFARI_VIEW_BUNDLE_ID = 'com.apple.SafariViewService';
|
|
28
28
|
const WILDCARD_BUNDLE_ID = '*';
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* Sends a connection key request to the Web Inspector.
|
|
31
|
+
* This method only waits to ensure the socket connection works, as the response
|
|
32
|
+
* from Web Inspector can take a long time.
|
|
33
33
|
*/
|
|
34
34
|
async function setConnectionKey() {
|
|
35
35
|
this.log.debug('Sending connection key request');
|
|
@@ -38,10 +38,15 @@ async function setConnectionKey() {
|
|
|
38
38
|
await this.requireRpcClient().send('setConnectionKey', {}, false);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
+
* Establishes a connection to the remote debugger and initializes the RPC client.
|
|
42
|
+
* Sets up event listeners for debugger-level events and waits for applications
|
|
43
|
+
* to be reported if a timeout is specified.
|
|
41
44
|
*
|
|
42
|
-
* @
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
+
* @param timeout - Maximum time in milliseconds to wait for applications to be reported.
|
|
46
|
+
* Defaults to 0 (no waiting). If provided, the method will wait up to
|
|
47
|
+
* this duration for applications to appear in the app dictionary.
|
|
48
|
+
* @returns A promise that resolves to the application dictionary containing all
|
|
49
|
+
* connected applications.
|
|
45
50
|
*/
|
|
46
51
|
async function connect(timeout = APP_CONNECT_TIMEOUT_MS) {
|
|
47
52
|
this.setup();
|
|
@@ -86,9 +91,8 @@ async function connect(timeout = APP_CONNECT_TIMEOUT_MS) {
|
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
93
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* @returns {Promise<void>}
|
|
94
|
+
* Disconnects from the remote debugger by closing the RPC client connection,
|
|
95
|
+
* emitting a disconnect event, and performing cleanup via teardown.
|
|
92
96
|
*/
|
|
93
97
|
async function disconnect() {
|
|
94
98
|
await (0, property_accessors_1.getRcpClient)(this)?.disconnect();
|
|
@@ -96,12 +100,19 @@ async function disconnect() {
|
|
|
96
100
|
this.teardown();
|
|
97
101
|
}
|
|
98
102
|
/**
|
|
103
|
+
* Selects an application from the available connected applications.
|
|
104
|
+
* Searches for an app matching the provided URL and bundle IDs, then returns
|
|
105
|
+
* all pages from the selected application.
|
|
99
106
|
*
|
|
100
|
-
* @
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* @param
|
|
104
|
-
*
|
|
107
|
+
* @param currentUrl - Optional URL to match when selecting an application.
|
|
108
|
+
* If provided, the method will try to find an app containing
|
|
109
|
+
* a page with this URL.
|
|
110
|
+
* @param maxTries - Maximum number of retry attempts when searching for an app.
|
|
111
|
+
* Defaults to SELECT_APP_RETRIES (20).
|
|
112
|
+
* @param ignoreAboutBlankUrl - If true, pages with 'about:blank' URL will be
|
|
113
|
+
* excluded from the results. Defaults to false.
|
|
114
|
+
* @returns A promise that resolves to an array of Page objects from the selected
|
|
115
|
+
* application. Returns an empty array if no applications are connected.
|
|
105
116
|
*/
|
|
106
117
|
async function selectApp(currentUrl = null, maxTries = SELECT_APP_RETRIES, ignoreAboutBlankUrl = false) {
|
|
107
118
|
this.log.debug('Selecting application');
|
|
@@ -118,7 +129,6 @@ async function selectApp(currentUrl = null, maxTries = SELECT_APP_RETRIES, ignor
|
|
|
118
129
|
logApplicationDictionary.bind(this)();
|
|
119
130
|
// translate the dictionary into a useful form, and return to sender
|
|
120
131
|
this.log.debug(`Finally selecting app ${(0, property_accessors_1.getAppIdKey)(this)}`);
|
|
121
|
-
/** @type {import('../types').Page[]} */
|
|
122
132
|
const fullPageArray = [];
|
|
123
133
|
for (const [app, info] of lodash_1.default.toPairs((0, property_accessors_1.getAppDict)(this))) {
|
|
124
134
|
if (!lodash_1.default.isArray(info.pageArray) || !info.isActive) {
|
|
@@ -138,12 +148,15 @@ async function selectApp(currentUrl = null, maxTries = SELECT_APP_RETRIES, ignor
|
|
|
138
148
|
return fullPageArray;
|
|
139
149
|
}
|
|
140
150
|
/**
|
|
151
|
+
* Selects a specific page within an application and forwards socket setup.
|
|
152
|
+
* Optionally waits for the page to be ready based on the page load strategy.
|
|
141
153
|
*
|
|
142
|
-
* @
|
|
143
|
-
*
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
146
|
-
*
|
|
154
|
+
* @param appIdKey - The application identifier key. Will be prefixed with 'PID:'
|
|
155
|
+
* if not already present.
|
|
156
|
+
* @param pageIdKey - The page identifier key to select.
|
|
157
|
+
* @param skipReadyCheck - If true, skips the page readiness check. Defaults to false.
|
|
158
|
+
* When false, the method will wait for the page to be ready
|
|
159
|
+
* according to the configured page load strategy.
|
|
147
160
|
*/
|
|
148
161
|
async function selectPage(appIdKey, pageIdKey, skipReadyCheck = false) {
|
|
149
162
|
const fullAppIdKey = lodash_1.default.startsWith(`${appIdKey}`, 'PID:') ? `${appIdKey}` : `PID:${appIdKey}`;
|
|
@@ -153,30 +166,82 @@ async function selectPage(appIdKey, pageIdKey, skipReadyCheck = false) {
|
|
|
153
166
|
const timer = new support_1.timing.Timer().start();
|
|
154
167
|
const pageReadinessDetector = skipReadyCheck ? undefined : {
|
|
155
168
|
timeoutMs: this.pageLoadMs,
|
|
156
|
-
readinessDetector: (
|
|
169
|
+
readinessDetector: (readyState) => this.isPageLoadingCompleted(readyState),
|
|
157
170
|
};
|
|
158
171
|
await this.requireRpcClient().selectPage(fullAppIdKey, pageIdKey, pageReadinessDetector);
|
|
159
172
|
this.log.debug(`Selected page after ${timer.getDuration().asMilliSeconds.toFixed(0)}ms`);
|
|
160
173
|
}
|
|
161
174
|
/**
|
|
175
|
+
* Finds app keys based on assigned bundle IDs from the app dictionary.
|
|
176
|
+
* When bundleIds includes a wildcard ('*'), returns all app keys in the app dictionary.
|
|
177
|
+
* Also handles proxy applications that may act on behalf of other bundle IDs.
|
|
178
|
+
*
|
|
179
|
+
* @param bundleIds - Array of bundle identifiers to match against. If the array
|
|
180
|
+
* contains a wildcard ('*'), all apps will be returned.
|
|
181
|
+
* @returns Array of application identifier keys that match the provided bundle IDs.
|
|
182
|
+
*/
|
|
183
|
+
function getPossibleDebuggerAppKeys(bundleIds) {
|
|
184
|
+
const appDict = (0, property_accessors_1.getAppDict)(this);
|
|
185
|
+
if (bundleIds.includes(WILDCARD_BUNDLE_ID)) {
|
|
186
|
+
this.log.info('Returning all apps because the list of matching bundle identifiers includes a wildcard');
|
|
187
|
+
return lodash_1.default.keys(appDict);
|
|
188
|
+
}
|
|
189
|
+
// go through the possible bundle identifiers
|
|
190
|
+
const possibleBundleIds = lodash_1.default.uniq([
|
|
191
|
+
utils_1.WEB_CONTENT_BUNDLE_ID,
|
|
192
|
+
WEB_CONTENT_PROCESS_BUNDLE_ID,
|
|
193
|
+
SAFARI_VIEW_PROCESS_BUNDLE_ID,
|
|
194
|
+
SAFARI_VIEW_BUNDLE_ID,
|
|
195
|
+
...bundleIds,
|
|
196
|
+
]);
|
|
197
|
+
this.log.debug(`Checking for apps with matching bundle identifiers: ${possibleBundleIds.join(', ')}`);
|
|
198
|
+
const proxiedAppIds = [];
|
|
199
|
+
for (const bundleId of possibleBundleIds) {
|
|
200
|
+
// now we need to determine if we should pick a proxy for this instead
|
|
201
|
+
for (const appId of (0, utils_1.appIdsForBundle)(bundleId, appDict)) {
|
|
202
|
+
if (proxiedAppIds.includes(appId)) {
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
proxiedAppIds.push(appId);
|
|
206
|
+
this.log.debug(`Found app id key '${appId}' for bundle '${bundleId}'`);
|
|
207
|
+
for (const [key, data] of lodash_1.default.toPairs(appDict)) {
|
|
208
|
+
if (data.isProxy && data.hostId === appId && !proxiedAppIds.includes(key)) {
|
|
209
|
+
this.log.debug(`Found separate bundleId '${data.bundleId}' ` +
|
|
210
|
+
`acting as proxy for '${bundleId}', with app id '${key}'`);
|
|
211
|
+
proxiedAppIds.push(key);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
this.log.debug(`You may also consider providing more values to 'additionalWebviewBundleIds' ` +
|
|
217
|
+
`capability to match other applications. Add a wildcard ('*') to match all apps.`);
|
|
218
|
+
return lodash_1.default.uniq(proxiedAppIds);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Searches for an application matching the given criteria by retrying with
|
|
222
|
+
* exponential backoff. Attempts to connect to apps matching the bundle IDs
|
|
223
|
+
* and optionally filters by URL.
|
|
162
224
|
*
|
|
163
|
-
* @
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* @param
|
|
167
|
-
* @
|
|
225
|
+
* @param currentUrl - Optional URL to match when searching for a page.
|
|
226
|
+
* If provided, only apps containing a page with this URL
|
|
227
|
+
* will be considered.
|
|
228
|
+
* @param maxTries - Maximum number of retry attempts.
|
|
229
|
+
* @param ignoreAboutBlankUrl - If true, pages with 'about:blank' URL will be
|
|
230
|
+
* ignored during the search.
|
|
231
|
+
* @returns A promise that resolves to an AppPage object containing the matched
|
|
232
|
+
* app ID key and page dictionary.
|
|
233
|
+
* @throws Error if no valid webapp can be connected after all retry attempts.
|
|
168
234
|
*/
|
|
169
235
|
async function searchForApp(currentUrl, maxTries, ignoreAboutBlankUrl) {
|
|
170
|
-
/** @type {string[]} */
|
|
171
236
|
const bundleIds = lodash_1.default.compact([
|
|
172
237
|
(0, property_accessors_1.getBundleId)(this),
|
|
173
238
|
...((0, property_accessors_1.getAdditionalBundleIds)(this) ?? []),
|
|
174
239
|
...((0, property_accessors_1.getIncludeSafari)(this) && !(0, property_accessors_1.getIsSafari)(this) ? [SAFARI_BUNDLE_ID] : []),
|
|
175
240
|
]);
|
|
176
241
|
let retryCount = 0;
|
|
177
|
-
return
|
|
242
|
+
return await (0, asyncbox_1.retryInterval)(maxTries, SELECT_APP_RETRY_SLEEP_MS, async () => {
|
|
178
243
|
logApplicationDictionary.bind(this)();
|
|
179
|
-
const possibleAppIds = getPossibleDebuggerAppKeys.bind(this)(
|
|
244
|
+
const possibleAppIds = getPossibleDebuggerAppKeys.bind(this)(bundleIds);
|
|
180
245
|
this.log.debug(`Trying out the possible app ids: ${possibleAppIds.join(', ')} (try #${retryCount + 1} of ${maxTries})`);
|
|
181
246
|
for (const attemptedAppIdKey of possibleAppIds) {
|
|
182
247
|
const appInfo = (0, property_accessors_1.getAppDict)(this)[attemptedAppIdKey];
|
|
@@ -215,15 +280,17 @@ async function searchForApp(currentUrl, maxTries, ignoreAboutBlankUrl) {
|
|
|
215
280
|
}
|
|
216
281
|
retryCount++;
|
|
217
282
|
throw new Error(`Could not connect to a valid webapp. Make sure it is debuggable and has at least one active page.`);
|
|
218
|
-
})
|
|
283
|
+
});
|
|
219
284
|
}
|
|
220
285
|
/**
|
|
286
|
+
* Searches through the application dictionary to find a page matching the given URL.
|
|
287
|
+
* Only considers active applications with non-empty page arrays.
|
|
221
288
|
*
|
|
222
|
-
* @
|
|
223
|
-
* @param
|
|
224
|
-
*
|
|
225
|
-
* @param
|
|
226
|
-
* @returns
|
|
289
|
+
* @param appsDict - The application dictionary to search through.
|
|
290
|
+
* @param currentUrl - Optional URL to match. If provided, only pages with this exact
|
|
291
|
+
* URL or with this URL followed by '/' will be considered.
|
|
292
|
+
* @param ignoreAboutBlankUrl - If true, pages with 'about:blank' URL will be ignored.
|
|
293
|
+
* @returns An AppPage object if a matching page is found, null otherwise.
|
|
227
294
|
*/
|
|
228
295
|
function searchForPage(appsDict, currentUrl = null, ignoreAboutBlankUrl = false) {
|
|
229
296
|
for (const appDict of lodash_1.default.values(appsDict)) {
|
|
@@ -243,8 +310,9 @@ function searchForPage(appsDict, currentUrl = null, ignoreAboutBlankUrl = false)
|
|
|
243
310
|
return null;
|
|
244
311
|
}
|
|
245
312
|
/**
|
|
246
|
-
*
|
|
247
|
-
*
|
|
313
|
+
* Logs the current application dictionary to the debug log.
|
|
314
|
+
* Displays all applications, their properties, and their associated pages
|
|
315
|
+
* in a formatted structure.
|
|
248
316
|
*/
|
|
249
317
|
function logApplicationDictionary() {
|
|
250
318
|
this.log.debug('Current applications available:');
|
|
@@ -268,53 +336,4 @@ function logApplicationDictionary() {
|
|
|
268
336
|
}
|
|
269
337
|
}
|
|
270
338
|
}
|
|
271
|
-
/**
|
|
272
|
-
* Find app keys based on assigned bundleIds from appDict
|
|
273
|
-
* When bundleIds includes a wildcard ('*'), returns all appKeys in appDict.
|
|
274
|
-
*
|
|
275
|
-
* @this {RemoteDebugger}
|
|
276
|
-
* @param {string[]} bundleIds
|
|
277
|
-
* @returns {string[]}
|
|
278
|
-
*/
|
|
279
|
-
function getPossibleDebuggerAppKeys(bundleIds) {
|
|
280
|
-
const appDict = (0, property_accessors_1.getAppDict)(this);
|
|
281
|
-
if (bundleIds.includes(WILDCARD_BUNDLE_ID)) {
|
|
282
|
-
this.log.info('Returning all apps because the list of matching bundle identifiers includes a wildcard');
|
|
283
|
-
return lodash_1.default.keys(appDict);
|
|
284
|
-
}
|
|
285
|
-
// go through the possible bundle identifiers
|
|
286
|
-
const possibleBundleIds = lodash_1.default.uniq([
|
|
287
|
-
utils_1.WEB_CONTENT_BUNDLE_ID,
|
|
288
|
-
WEB_CONTENT_PROCESS_BUNDLE_ID,
|
|
289
|
-
SAFARI_VIEW_PROCESS_BUNDLE_ID,
|
|
290
|
-
SAFARI_VIEW_BUNDLE_ID,
|
|
291
|
-
...bundleIds,
|
|
292
|
-
]);
|
|
293
|
-
this.log.debug(`Checking for apps with matching bundle identifiers: ${possibleBundleIds.join(', ')}`);
|
|
294
|
-
/** @type {string[]} */
|
|
295
|
-
const proxiedAppIds = [];
|
|
296
|
-
for (const bundleId of possibleBundleIds) {
|
|
297
|
-
// now we need to determine if we should pick a proxy for this instead
|
|
298
|
-
for (const appId of (0, utils_1.appIdsForBundle)(bundleId, appDict)) {
|
|
299
|
-
if (proxiedAppIds.includes(appId)) {
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
proxiedAppIds.push(appId);
|
|
303
|
-
this.log.debug(`Found app id key '${appId}' for bundle '${bundleId}'`);
|
|
304
|
-
for (const [key, data] of lodash_1.default.toPairs(appDict)) {
|
|
305
|
-
if (data.isProxy && data.hostId === appId && !proxiedAppIds.includes(key)) {
|
|
306
|
-
this.log.debug(`Found separate bundleId '${data.bundleId}' ` +
|
|
307
|
-
`acting as proxy for '${bundleId}', with app id '${key}'`);
|
|
308
|
-
proxiedAppIds.push(key);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
this.log.debug(`You may also consider providing more values to 'additionalWebviewBundleIds' ` +
|
|
314
|
-
`capability to match other applications. Add a wildcard ('*') to match all apps.`);
|
|
315
|
-
return lodash_1.default.uniq(proxiedAppIds);
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* @typedef {import('../remote-debugger').RemoteDebugger} RemoteDebugger
|
|
319
|
-
*/
|
|
320
339
|
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../lib/mixins/connect.js"],"names":[],"mappings":";;;;;AAsCA,4CAMC;A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AC;YAC3C,IAAI,GAAG,KAAK,WAAW,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;gBAChE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC;gBAClC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;oBACzB,IAAI,MAAM,GAAG,IAAI,CAAC;oBAClB,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;wBACrC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,MAAM,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;wBAChE,MAAM,GAAG,IAAI,CAAC;oBAChB,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,WAAW,GAAG,gBAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;gBAC/E,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,GAAG,KAAK,WAAW,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,61 +1,81 @@
|
|
|
1
|
+
import type { RemoteDebugger } from '../remote-debugger';
|
|
2
|
+
import type { StringRecord } from '@appium/types';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @
|
|
4
|
+
* Handles page change notifications from the remote debugger.
|
|
5
|
+
* Updates the page array for the specified application and emits a page change
|
|
6
|
+
* event if the pages have actually changed and navigation is not in progress.
|
|
7
|
+
*
|
|
8
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
9
|
+
* @param appIdKey - The application identifier key for which pages have changed.
|
|
10
|
+
* @param pageDict - Dictionary containing the new page information.
|
|
7
11
|
*/
|
|
8
|
-
export function onPageChange(this:
|
|
12
|
+
export declare function onPageChange(this: RemoteDebugger, err: Error | null | undefined, appIdKey: string, pageDict: StringRecord): Promise<void>;
|
|
9
13
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
14
|
+
* Handles notifications when a new application connects to the remote debugger.
|
|
15
|
+
* Updates the application dictionary with the new application information.
|
|
16
|
+
*
|
|
17
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
18
|
+
* @param dict - Dictionary containing the new application information including
|
|
19
|
+
* the WIRApplicationIdentifierKey.
|
|
14
20
|
*/
|
|
15
|
-
export function onAppConnect(this:
|
|
21
|
+
export declare function onAppConnect(this: RemoteDebugger, err: Error | null | undefined, dict: StringRecord): Promise<void>;
|
|
16
22
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
23
|
+
* Handles notifications when an application disconnects from the remote debugger.
|
|
24
|
+
* Removes the application from the dictionary and attempts to find a replacement
|
|
25
|
+
* if the disconnected app was the currently selected one. Emits a disconnect event
|
|
26
|
+
* if no applications remain.
|
|
27
|
+
*
|
|
28
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
29
|
+
* @param dict - Dictionary containing the disconnected application information
|
|
30
|
+
* including the WIRApplicationIdentifierKey.
|
|
21
31
|
*/
|
|
22
|
-
export function onAppDisconnect(this:
|
|
32
|
+
export declare function onAppDisconnect(this: RemoteDebugger, err: Error | null | undefined, dict: StringRecord): void;
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
34
|
+
* Handles notifications when an application's information is updated.
|
|
35
|
+
* Updates the application dictionary with the new information while preserving
|
|
36
|
+
* any existing page array data.
|
|
37
|
+
*
|
|
38
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
39
|
+
* @param dict - Dictionary containing the updated application information.
|
|
28
40
|
*/
|
|
29
|
-
export function onAppUpdate(this:
|
|
41
|
+
export declare function onAppUpdate(this: RemoteDebugger, err: Error | null | undefined, dict: StringRecord): Promise<void>;
|
|
30
42
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
43
|
+
* Handles notifications containing the list of connected drivers.
|
|
44
|
+
* Updates the internal connected drivers list with the received information.
|
|
45
|
+
*
|
|
46
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
47
|
+
* @param drivers - Dictionary containing the connected driver list with
|
|
48
|
+
* WIRDriverDictionaryKey.
|
|
35
49
|
*/
|
|
36
|
-
export function onConnectedDriverList(this:
|
|
50
|
+
export declare function onConnectedDriverList(this: RemoteDebugger, err: Error | null | undefined, drivers: StringRecord): void;
|
|
37
51
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
52
|
+
* Handles notifications about the current automation availability state.
|
|
53
|
+
* This state changes when 'Remote Automation' setting in Safari's advanced settings
|
|
54
|
+
* is toggled. The state can be either WIRAutomationAvailabilityAvailable or
|
|
55
|
+
* WIRAutomationAvailabilityNotAvailable.
|
|
56
|
+
*
|
|
57
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
58
|
+
* @param state - Dictionary containing the automation availability state with
|
|
59
|
+
* WIRAutomationAvailabilityKey.
|
|
42
60
|
*/
|
|
43
|
-
export function onCurrentState(this:
|
|
61
|
+
export declare function onCurrentState(this: RemoteDebugger, err: Error | null | undefined, state: StringRecord): void;
|
|
44
62
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
63
|
+
* Handles notifications containing the list of connected applications.
|
|
64
|
+
* Translates the received information into the application dictionary format,
|
|
65
|
+
* filtering out any applications that are in the skipped apps list.
|
|
66
|
+
*
|
|
67
|
+
* @param err - Error object if an error occurred, null or undefined otherwise.
|
|
68
|
+
* @param apps - Dictionary containing the connected applications list.
|
|
49
69
|
*/
|
|
50
|
-
export function onConnectedApplicationList(this:
|
|
70
|
+
export declare function onConnectedApplicationList(this: RemoteDebugger, err: Error | null | undefined, apps: StringRecord): Promise<void>;
|
|
51
71
|
/**
|
|
52
|
-
* Given a bundle
|
|
53
|
-
* connected.
|
|
72
|
+
* Given a bundle ID, finds the correct remote debugger app identifier key
|
|
73
|
+
* that is currently connected. Also handles proxy applications that may act
|
|
74
|
+
* on behalf of the requested bundle ID.
|
|
54
75
|
*
|
|
55
|
-
* @
|
|
56
|
-
* @
|
|
57
|
-
*
|
|
76
|
+
* @param bundleId - The bundle identifier to search for.
|
|
77
|
+
* @returns The application identifier key if found, undefined otherwise.
|
|
78
|
+
* If a proxy application is found, returns the proxy's app ID instead.
|
|
58
79
|
*/
|
|
59
|
-
export function getDebuggerAppKey(this:
|
|
60
|
-
export type RemoteDebugger = import("../remote-debugger").RemoteDebugger;
|
|
80
|
+
export declare function getDebuggerAppKey(this: RemoteDebugger, bundleId: string): string | undefined;
|
|
61
81
|
//# sourceMappingURL=message-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-handlers.d.ts","sourceRoot":"","sources":["../../../lib/mixins/message-handlers.
|
|
1
|
+
{"version":3,"file":"message-handlers.d.ts","sourceRoot":"","sources":["../../../lib/mixins/message-handlers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQlD;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,IAAI,CA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