Merge pull request #2937 from paymand/selendroid_default_context

Init the current context as NATIVE_APP for Selendroid.
This commit is contained in:
Jonathan Lipps
2014-06-26 02:40:24 -07:00
2 changed files with 1 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);