mirror of
https://github.com/appium/appium.git
synced 2026-05-12 22:08:40 -05:00
finish off routing for #2226
This commit is contained in:
@@ -135,9 +135,10 @@ IOS.prototype.configureApp = function (cb) {
|
||||
var _cb = cb;
|
||||
cb = function (err) {
|
||||
if (err) {
|
||||
err = new Error("Bad app: " + this.args.app + ". App paths need to be absolute, " +
|
||||
" relative to the appium server install dir, URL to compressed file, " +
|
||||
" or special app name. cause: " + err);
|
||||
err = new Error("Bad app: " + this.args.app + ". App paths need to be " +
|
||||
"absolute, or relative to the appium server install " +
|
||||
"dir, or a URL to compressed file, or a special app " +
|
||||
"name. cause: " + err);
|
||||
}
|
||||
_cb(err);
|
||||
};
|
||||
|
||||
@@ -102,6 +102,9 @@ module.exports = function (appium) {
|
||||
rest.get('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled);
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/device/push_file', controller.pushFile);
|
||||
rest.get('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile);
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_airplane_mode', controller.toggleFlightMode);
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_wifi', controller.toggleWiFi);
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_location_services', controller.toggleLocationServices);
|
||||
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/app/launch', controller.launchApp);
|
||||
rest.post('/wd/hub/session/:sessionId?/appium/app/close', controller.closeApp);
|
||||
|
||||
Reference in New Issue
Block a user