When using Appium Desktop ONLY the following call...
((AndroidDriver)((WebDriverFacade) getDriver()).getProxiedDriver()).terminateApp("<appName>");
...yields the following exception...
[main] ERROR net.thucydides.core.steps.ConsoleLoggingListener - The following error occurred: An unknown server-side error occurred while processing the command. Original error: '<appName>' is still running after 500ms timeout
With Appium CLI, there is no exception and my tests run fine.
appium CLI version : 1.9.0
Appium Desktop Version : 1.7.1
After every test case execution, we're closing the app and re-opening before test case starts. This is to make sure app has got clean base state.
@dpgraham can you please have a look at this issue ?
@jphennessey Do you have a sample app + capabilities to reproduce this?
I'll re-open if sample app + caps provided.
Still exists the issue in appium1.10.0, when the app stay in first level screen, it do not report error.But if app stay in second level screen, it will report the exception "step error message is: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: 'com.glip.mobile' is still running after 500ms timeout".
We are also facing the same issue. @dpgraham Can you please provide some solution to it.
CC: @jphennessey @vikramvi
@dpgraham - Pls use the API Demos app. Click "OS" button, Click "SMS Messaging" button. Now try to terminate the app using "driver.terminateApp("provide app package name"); ", you will get the error "Encountered internal error running command: Error: 'io.appium.android.apis' is still running after 500ms timeout"
The same happens for me with the native settings app when executing driver.terminate_app("com.android.settings"). Increasing the timeout does not solve the problem and just ignoring the exception is fine, since the app actually closes and can be reopened later.
Additional, possibly helpful info:
Setup:
Caps:
{
"platformName": "Android",
"platformVersion": "9",
"automationName": "uiautomator2",
"appPackage": "com.android.settings",
"appActivity": ".Settings",
"deviceName": "Galaxy Tab A",
"noReset": "True",
"fullReset": "False"
}
@dpgraham What is missing for reopening this issue?
Most helpful comment
We are also facing the same issue. @dpgraham Can you please provide some solution to it.
CC: @jphennessey @vikramvi