macaca-android
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -16,3 +16,2 @@ 'use strict'; | ||
const controllers = require('./controllers'); | ||
const WEBVIEW = 'WEBVIEW'; | ||
@@ -31,2 +30,3 @@ | ||
this.uiautomator = null; | ||
this.isChrome = null; | ||
this.contexts = []; | ||
@@ -38,7 +38,8 @@ } | ||
this.args = _.clone(caps); | ||
this.isChrome = this.args.browserName && this.args.browserName.toLowerCase() === 'chrome'; | ||
yield JAVA.getVersion(); | ||
this.initAdb(); | ||
yield this.initDevice(); | ||
yield this.initUiautomator(); | ||
yield this.getApkInfo(); | ||
yield this.initUiautomator(); | ||
yield this.adb.install(UnlockApk.apkPath); | ||
@@ -48,2 +49,6 @@ yield this.unlock(); | ||
yield this.waitActivityReady(); | ||
if (this.isChrome) { | ||
yield this.getWebviews(); | ||
} | ||
}; | ||
@@ -139,2 +144,10 @@ | ||
Android.prototype.getApkInfo = function *() { | ||
if (this.isChrome) { | ||
return this.apkInfo = { | ||
package: 'com.android.browser', | ||
activity: '.BrowserActivity' | ||
} | ||
} | ||
if (this.args.package && this.args.activity) { | ||
@@ -141,0 +154,0 @@ this.apkInfo = { |
{ | ||
"name": "macaca-android", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Macaca Android driver", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143345
388