UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

23 lines (20 loc) 543 B
/** * * Receive the current activity on an Android device. * * <example> :rotateAsync.js browser.currentActivity().then(function() { 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 * */ let currentActivity = function () { return this.requestHandler.create('/session/:sessionId/appium/device/current_activity') } export default currentActivity