macaca-android
Advanced tools
Comparing version 2.0.28 to 2.0.29
@@ -32,4 +32,4 @@ 'use strict'; | ||
controllers.setContext = function *(name) { | ||
yield this.getContexts(); | ||
if (name !== NATIVE) { | ||
yield this.getContexts(); | ||
if (!~this.contexts.indexOf(name)) { | ||
@@ -36,0 +36,0 @@ throw new errors.NoSuchWindow(); |
@@ -10,4 +10,2 @@ 'use strict'; | ||
const ChromeDriver = require('macaca-chromedriver'); | ||
const errors = require('webdriver-dfn-error-code').errors; | ||
const getErrorByCode = require('webdriver-dfn-error-code').getErrorByCode; | ||
@@ -296,5 +294,5 @@ const _ = require('./helper'); | ||
logger.debug(`start app with: ${JSON.stringify(this.apkInfo)}`) | ||
logger.debug(`start app with: ${JSON.stringify(this.apkInfo)}`); | ||
yield this.adb.startApp(this.apkInfo); | ||
yield _.sleep(10 * 1000); | ||
yield _.sleep(5 * 1000); | ||
}; | ||
@@ -301,0 +299,0 @@ |
{ | ||
"name": "macaca-android", | ||
"version": "2.0.28", | ||
"version": "2.0.29", | ||
"description": "Macaca Android driver", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
20215
546