appium-android-driver 12.1.3 → 12.2.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 +6 -0
- package/build/lib/commands/context/exports.d.ts +5 -0
- package/build/lib/commands/context/exports.d.ts.map +1 -1
- package/build/lib/commands/context/exports.js +17 -0
- package/build/lib/commands/context/exports.js.map +1 -1
- package/build/lib/commands/context/helpers.d.ts +7 -6
- package/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/build/lib/commands/context/helpers.js +257 -252
- package/build/lib/commands/context/helpers.js.map +1 -1
- package/build/lib/driver.d.ts +6 -2
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +2 -1
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +3 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +3 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/lib/commands/context/exports.js +22 -0
- package/lib/commands/context/helpers.js +322 -312
- package/lib/driver.ts +3 -1
- package/lib/execute-method-map.ts +4 -0
- package/package.json +1 -1
package/lib/driver.ts
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
suspendChromedriverProxy,
|
|
34
34
|
startChromeSession,
|
|
35
35
|
mobileGetContexts,
|
|
36
|
+
mobileGetChromeCapabilities,
|
|
36
37
|
getWindowHandle,
|
|
37
38
|
getWindowHandles,
|
|
38
39
|
setWindow,
|
|
@@ -243,7 +244,7 @@ class AndroidDriver
|
|
|
243
244
|
_logcatWebsocketListener?: LogcatListener;
|
|
244
245
|
_bidiServerLogListener?: (...args: any[]) => void;
|
|
245
246
|
_bidiProxyUrl: string | null = null;
|
|
246
|
-
|
|
247
|
+
_chromedriverCapsCache: LRUCache<string, StringRecord> = new LRUCache({
|
|
247
248
|
max: 20,
|
|
248
249
|
updateAgeOnGet: true,
|
|
249
250
|
});
|
|
@@ -354,6 +355,7 @@ class AndroidDriver
|
|
|
354
355
|
onChromedriverStop = onChromedriverStop;
|
|
355
356
|
isWebContext = isWebContext;
|
|
356
357
|
mobileGetContexts = mobileGetContexts;
|
|
358
|
+
mobileGetChromeCapabilities = mobileGetChromeCapabilities;
|
|
357
359
|
setContext = setContext as any as (this: AndroidDriver, name?: string) => Promise<void>;
|
|
358
360
|
setWindow = setWindow;
|
|
359
361
|
getWindowHandle = getWindowHandle;
|