Can you please explain how I can move the tested app to the background, then turn off WIFI/LTE and then return to the tested app?
runAppInBackground
with duration of zero seconds sends app into background.
java doc → InteractsWithApps - java-client 9.1.0 javadoc