I am up to write Selenium+Appium test for Android app.
This app has activity with button. Tapping this button will open another activity above first one. So at this moment there will be 2 activities for application (I can see this if in Android Studio I will execute "Layout inspector" for my app, and Studio will ask me in "Select window" dialog which activity to use).
With apium I can work with first activity, but not with second. I can not find any element with any was (by id, by Xpath). Even tap on screen with TouchAction does not work on second activity. I tried dirrerent real devices and Emulators.
When I use driver.currentActivity() command, I will see that driver is using second activity.
But I have really no clue what to do and how fix this.
Hope you solved same problem and can help me.
Thank you.