getCurrentPackage
Get the name of the current Android package.
Usage​
await browser.getCurrentPackage()
Example​
getCurrentPackage.js
it('should get the current Android package', async () => {
const pkg = await browser.getCurrentPackage()
console.log('Current package:', pkg)
})
Returns​
- <
Promise<string>>returns: The name of the current Android package
Support​
Supported platforms: Android
note
Refer to the official Appium driver documentation to see which driver versions support this command.