UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

28 lines (26 loc) 729 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = currentActivity; /** * * Receive the current activity on an Android device. * * <example> :rotateAsync.js it('should get the activity of the android device', function () { var activity = browser.currentActivity() console.log(activity); // returns android activity information }); * </example> * * @see https://github.com/appium/appium-android-driver/blob/master/lib/commands/general.js#L59-L61 * @type mobile * @for android * */ function currentActivity() { return this.requestHandler.create('/session/:sessionId/appium/device/current_activity'); } module.exports = exports['default'];