UNPKG

webdriverio-workflo

Version:

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

33 lines (31 loc) 820 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getCurrentPackage; /** * * Get current device package. * * <example> :getCurrentPackage.js it('should get current Android package', function () { var package = browser.getCurrentPackage(); console.log(package); // returns "io.webdriver.guineapig" }); * </example> * * @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/other/appium-bindings.md#current-package * @type mobile * @for android * */ function getCurrentPackage() { return this.unify(this.requestHandler.create({ path: '/session/:sessionId/appium/device/current_package', method: 'GET' }), { extractValue: true }); } module.exports = exports['default'];