Skip to content

Commit d27bf47

Browse files
chore: include check for api level
1 parent f4855ee commit d27bf47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ns-capabilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class NsCapabilities implements INsCapabilities {
103103
}
104104
} else {
105105
if (this._isAndroid) {
106-
if (this.tryGetAndroidApiLevel() > 24 || (this.appiumCaps["apiLevel"] && this.appiumCaps["apiLevel"].toLowerCase().includes("p"))) {
106+
if (this.tryGetAndroidApiLevel() > 6 || this.tryGetAndroidApiLevel() > 24 || (this.appiumCaps["apiLevel"] && this.appiumCaps["apiLevel"].toLowerCase().includes("p"))) {
107107
this._automationName = AutomationName.UiAutomator2;
108108
}
109109
}

0 commit comments

Comments
 (0)