diff --git a/lib/devices/android/selendroid.js b/lib/devices/android/selendroid.js index 75b516783..5bebf6fdd 100644 --- a/lib/devices/android/selendroid.js +++ b/lib/devices/android/selendroid.js @@ -69,6 +69,7 @@ Selendroid.prototype.init = function () { , ['GET', new RegExp('^/wd/hub/session/[^/]+/network_connection')] , ['POST', new RegExp('^/wd/hub/session/[^/]+/network_connection')] ]; + this.curContext = this.defaultContext(); }; _.extend(Selendroid.prototype, androidCommon); diff --git a/lib/server/routing.js b/lib/server/routing.js index 19a3a6204..9b9bf6bbc 100644 --- a/lib/server/routing.js +++ b/lib/server/routing.js @@ -151,9 +151,6 @@ var routeNotYetImplemented = function (rest) { rest.post('/wd/hub/session/:sessionId?/buttondown', controller.notYetImplemented); rest.post('/wd/hub/session/:sessionId?/buttonup', controller.notYetImplemented); rest.post('/wd/hub/session/:sessionId?/doubleclick', controller.notYetImplemented); - rest.post('/wd/hub/session/:sessionId?/touch/down', controller.notYetImplemented); - rest.post('/wd/hub/session/:sessionId?/touch/up', controller.notYetImplemented); - rest.post('/wd/hub/session/:sessionId?/touch/move', controller.notYetImplemented); rest.post('/wd/hub/session/:sessionId?/touch/scroll', controller.notYetImplemented); rest.post('/wd/hub/session/:sessionId?/touch/doubleclick', controller.notYetImplemented); rest.get('/wd/hub/session/:sessionId?/location', controller.notYetImplemented);