How to navigate the device using Xamarin.UITests?

I have a test case - a user selects the calendar icon inside of the application - which pulls the app to the background and brings up the google calendar.

Is there a good way to navigate back into the app after the google calendar is up? My other tests are able to run back to back as expected, except for this case. I would like to be able to select the home button and click back into the app. What would be the best approach to handle this case?

Answers

  • valdeterovaldetero USInsider, University ✭✭

    For iOS, I might suggest using Spotlight and searching for your app - although this is very hackish. However, this probably wouldn't work in the simulator since dragging doesn't work. Unfortunately, this doesn't help you on Android.

Sign In or Register to comment.