How to close app from background in iOS


Currently I am using below environment for my testing:

1.Device: iPhone 6s plus (Real device)
2.Device version: 11.2.2
3.Sppium studio: 11.3
4.Eclipse for IDE and maven for build management

I have installed app on my mobile device, after the script is pass it closes the application but my app is still running in the background

Question: How can I kill the app running in background with uninstalling the app

I have use driver.closeapp() but is not working



You can use

driver.executeScript("client:client.applicationClose('<bundle ID of application>')");

for more info :


Thanks Tom, its working fine


how can i set current app into background and back to foreground iOS