View Source Improve this doc

getCurrentPackage

Get current device package.

Usage

1
browser.getCurrentPackage();

Example

getCurrentPackage.js
1
2
3
4
it('should get current Android package', function () {
var package = browser.getCurrentPackage();
console.log(package); // returns "io.webdriver.guineapig"
});

Support

Support for android