I am trying to get to an element found in the Navigation Drawer of the app. I have been able to open the drawer, but cannot access any of its contents. The element I am trying to access has an id of 'drawer_item_logout', but the command .elementById('com.myapp.app:id/drawer_item_logout') is not finding the element. I am not having any luck with the xpath either.
I know from previous web automation experience that sometimes it's necessary to switch frames in order to access web elements. Is this the case in Android native apps as well, and if so, how do I go about switching focus to the drawer?
In case it's relevant, we're using the "NavigationView" widget from the Design Support Library.