appium-uiautomator2-driver 5.0.0-rc.1 → 5.0.1
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 +23 -0
- package/build/lib/constraints.d.ts +1 -1
- package/build/lib/driver.d.ts +2 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +81 -70
- package/build/lib/driver.js.map +1 -1
- package/build/lib/uiautomator2.js +14 -0
- package/build/lib/uiautomator2.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/driver.ts +6 -0
- package/npm-shrinkwrap.json +750 -109
- package/package.json +3 -3
- package/build/lib/commands/app-strings.d.ts +0 -12
- package/build/lib/commands/app-strings.d.ts.map +0 -1
- package/build/lib/commands/app-strings.js +0 -19
- package/build/lib/commands/app-strings.js.map +0 -1
- package/build/lib/commands/execute.d.ts +0 -15
- package/build/lib/commands/execute.d.ts.map +0 -1
- package/build/lib/commands/execute.js +0 -83
- package/build/lib/commands/execute.js.map +0 -1
package/lib/driver.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
RouteMatcher,
|
|
9
9
|
SingularSessionData,
|
|
10
10
|
StringRecord,
|
|
11
|
+
SessionCapabilities,
|
|
11
12
|
} from '@appium/types';
|
|
12
13
|
import {DEFAULT_ADB_PORT} from 'appium-adb';
|
|
13
14
|
import {AndroidDriver, utils} from 'appium-android-driver';
|
|
@@ -999,6 +1000,11 @@ class AndroidUiautomator2Driver
|
|
|
999
1000
|
return {...driverSettings, ...serverSettings} as any;
|
|
1000
1001
|
}
|
|
1001
1002
|
|
|
1003
|
+
// needed to make the typechecker happy
|
|
1004
|
+
async getAppiumSessionCapabilities(): Promise<SessionCapabilities<Uiautomator2Constraints>> {
|
|
1005
|
+
return (await super.getAppiumSessionCapabilities()) as SessionCapabilities<Uiautomator2Constraints>;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1002
1008
|
mobileGetActionHistory = mobileGetActionHistory;
|
|
1003
1009
|
mobileScheduleAction = mobileScheduleAction;
|
|
1004
1010
|
mobileUnscheduleAction = mobileUnscheduleAction;
|