Mobile.Device().ShellExecute("pm clear com.process.name") this works on closing the app from the backgroundand also making a clean application. For the moment I would like only the application to close from the background if it's possible.
On the other hand, at the next test run in the suite, the application is displaying the loading screen as it is started all over again. This is good.
Mobile.Device().ShellExecute("am kill com.process.name") this just displays in the console The shell command was executed.
Mobile.Device().ShellExecute("am force-stop com.process.name") this just displays in the console The shell command was executed.
Yes, I used the name of the process of the application.