webdriverio-workflo
Version:
This is a customized version of webdriverio for use with workflo framework.
32 lines (29 loc) • 805 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = background;
/**
*
* Send the currently active app to the background.
*
* <example>
:backgroundApp.js
browser.background(1);
* </example>
*
* @param {Number} seconds number of seconds after the app gets send to background
*
* @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/other/appium-bindings.md#background-app
* @type mobile
* @for android, ios
*
*/
function background() {
var seconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
return this.requestHandler.create({
path: '/session/:sessionId/appium/app/background',
method: 'POST'
}, { seconds });
}
module.exports = exports['default'];
;