I am automating the login scenario using espresso. My scenario is:
- I have to launch the activity
- I need to select the env and details from app
- Once clicking the login button, it automatically launches the browser for the login to the app
In this scenario first its launching the activity then after the click on the login button it is redirecting from the activity to the WebView.
How can I switch a native activity to an already opened WebView activity using espresso?