It's not a duplicate.
I am writing automation in Appium. I am fairly new to automation concept and Appium
it self. I am using java-client.
I have a scenario in which my android app for which I am writing automation, has to take android permission. My application navigates to following setting page of Android Settings as shown below.
To automate clicks on this page I have created a Page Object which would represent this screen. in this scenario I am only interested in toggling the Switch and to learn how to get it's state.
I could get resource id for the UI Automator Viewer something like this.
So my initialization is something like this to access the switch Widget.
SwitchID { $("#switchWidget") }
Apparently, When i run the feature file, Appium
is not able to find this switch widget. But I can automate other widget inside the application I am working on. but I can't get anything on this setting screen of android.
Any help would be highly regarded. Thanks