diff --git a/lib/commands/context.js b/lib/commands/context.js index e31b74e4..72de750b 100644 --- a/lib/commands/context.js +++ b/lib/commands/context.js @@ -436,10 +436,12 @@ const ContextMixin = { }, async setupNewChromedriver(opts, curDeviceId, adb, context) { + // @ts-ignore TODO: Remove the legacy if (opts.chromeDriverPort) { this?.log?.warn( `The 'chromeDriverPort' capability is deprecated. Please use 'chromedriverPort' instead` ); + // @ts-ignore TODO: Remove the legacy opts.chromedriverPort = opts.chromeDriverPort; } diff --git a/lib/constraints.ts b/lib/constraints.ts index 6aeb4280..d8402232 100644 --- a/lib/constraints.ts +++ b/lib/constraints.ts @@ -27,9 +27,6 @@ export const ANDROID_DRIVER_CONSTRAINTS = { deviceReadyTimeout: { isNumber: true, }, - androidCoverage: { - isString: true, - }, androidDeviceReadyTimeout: { isNumber: true, }, @@ -87,11 +84,6 @@ export const ANDROID_DRIVER_CONSTRAINTS = { enableWebviewDetailsCollection: { isBoolean: true, }, - // this one is deprecated - chromeDriverPort: { - isNumber: true, - }, - // duplicate of above with better spelling chromedriverPort: { isNumber: true, }, @@ -143,9 +135,6 @@ export const ANDROID_DRIVER_CONSTRAINTS = { unicodeKeyboard: { isBoolean: true, }, - resetKeyboard: { - isBoolean: true, - }, noSign: { isBoolean: true, }, @@ -158,12 +147,6 @@ export const ANDROID_DRIVER_CONSTRAINTS = { nativeWebScreenshot: { isBoolean: true, }, - androidScreenshotPath: { - isString: true, - }, - androidInstallPath: { - isString: true, - }, clearSystemFiles: { isBoolean: true, }, @@ -173,9 +156,6 @@ export const ANDROID_DRIVER_CONSTRAINTS = { autoGrantPermissions: { isBoolean: true, }, - sharedPreferences: { - isObject: true, - }, networkSpeed: { isString: true, }, @@ -270,17 +250,9 @@ export const ANDROID_DRIVER_CONSTRAINTS = { allowDelayAdb: { isBoolean: true, }, - - /*-----------------------------------+ - | UI-AUTOMATOR-SPECIFIC CONSTRAINTS | - +-----------------------------------+*/ - ignoreUnimportantViews: { isBoolean: true, }, - acceptSslCerts: { - isBoolean: true, - }, disableWindowAnimation: { isBoolean: true, },