I have test in Espresso, at the end of the test I press call button in application, which leads to dialing screen of the phone.
How can I return back to application? I want to return to application to log out from it.
pressBack(); doesn't do anything.
Suggestions would be appreciated.
UiDevice mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
mDevice.pressRecentApps();
mDevice.pressRecentApps();
I've used UIAutomator in the end. Exactly what I need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With