Open saikrishna321 opened 5 years ago
It probably just needs better logging. These new contrib commands only work with specific view types. We should probably be checking the View Type before executing and throwing helpful errors.
@dpgraham Agree. In this case the ViewType for scrollToPage works only on ViewPager type and the application has ViewPager type.
Sounds like this is a known issue: https://issuetracker.google.com/issues/110573930
Probably best to hold off on this and let Google fix it.
@dpgraham @mykola-mokhnach
Picked the latest espresso from master v 1.3.0 to test new mobile: commands.
Code to replicate
Error Log:
Sample App:
app-debug.apk.zip
More debugging:
As @mykola-mokhnach suggested I Migrated the project to AndroidX and gave a try. Manually i was able to install the app and everything works fine. When the same app was used with appum i bumped at below error
Android X App:
_androidxapp-debug.apk.zip