How to close app from background in iOS


#1

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


#2

Hi

You can use

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

for more info :
https://docs.experitest.com/display/TD/Additional+Commands


#3

Thanks Tom, its working fine


#4

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