How do I uninstall a native mobile app?
The example demonstrates how to uninstall a native mobile app.
In the solution below, the HICC app is uninstalled using the ‘removeApp’ command.
Solution:
# | Command | Target | Value |
---|---|---|---|
Uninstall app by providing the app package name in target | |||
1 | removeApp | com.worksoft.sample |
Tips, Tricks, Gotchas & Best Practices:
- You can store the app package name before using ‘removeApp’ with the 'storeCurrentPackage' command and then just call the variable in target.
- The app is uninstalled only for the current instance of the test execution. It will be available to test on in other tests or if the same test is re-executed.