From fc43c43adbfdaa445c6445fa90bddbdff236d733 Mon Sep 17 00:00:00 2001 From: Payman Delshad Date: Tue, 24 Jun 2014 14:15:42 +0200 Subject: [PATCH] Init the current context as NATIVE_APP for Selendroid. --- lib/devices/android/selendroid.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/devices/android/selendroid.js b/lib/devices/android/selendroid.js index de5485708..7a15d93ad 100644 --- a/lib/devices/android/selendroid.js +++ b/lib/devices/android/selendroid.js @@ -65,6 +65,7 @@ Selendroid.prototype.init = function () { , ['GET', new RegExp('^/wd/hub/session/[^/]+/context')] , ['GET', new RegExp('^/wd/hub/session/[^/]+/contexts')] ]; + this.curContext = this.defaultContext(); }; _.extend(Selendroid.prototype, androidCommon);