Issue
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.
Solution
UiDevice mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
mDevice.pressRecentApps();
mDevice.pressRecentApps();
I've used UIAutomator in the end. Exactly what I need.
Answered By - president
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.