How to access elements on external website using Espresso

前端 未结 2 1223
心在旅途
心在旅途 2021-02-03 11:42

Using espresso, we click a Login button which launches an external website (Chrome Custom Tab) where you can login and then it redirects back to our android application.

2条回答
  •  孤街浪徒
    2021-02-03 12:24

    I was able to resolve this issue using both Espresso and UI Automator. You are able to combine the two. The selection of the login button I used Espresso (and the rest of the app, I will use Espresso). To handle the Chrome Custom tab for logging in, I used UIAutomator:

提交回复
热议问题