fastlane-community / fastlane-plugin-cordova_screenshots

Take screenshots of your Cordova/Ionic app with fastlane
MIT License
17 stars 10 forks source link

[Android] Espresso / UIAutomatorTest cannot access WebView #20

Open anh1979 opened 5 years ago

anh1979 commented 5 years ago

Error in mainActivityTest(de.xxx.test.MainActivityTest): ▸ android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: WebView with JS enabled ▸ View Hierarchy...

Please could you provide a rich example of how to access IONIC app components from within the UIAutomator test. To be able to navigate inside the app ... And perhaps add some documentation about how to write and debug your tests in Android Studio. I managed to get that working some months ago, but now something broke and I didn't manage to get it working again.

thx in advance, Anne

janpio commented 5 years ago

We're in the same boat then - it's quite some time since I last used this. It's on my list of projects to revisit and improve, but currently my projects don't need it - so it is very low on the list of things to do unfortunately (unless someone comes forward and pays me to do so of course).

Let me see if I can find an old project using this...