How to use Native app and Chrome browser in one test?

Hi,

I am trying to automate checkout flow in my app. When I try to checkout, my app sends me to Payment Gateway in Chrome browser. And I need to interact with chrome browser before it sends me back to the app.

How can I do both in one test case? Please help.

Using Dump View hierarchy for Ui Automator present in eclipse, you can get the id’s of elements present on chrome browser