The sample code structure is given in the below image. This means, that if you instantiate your driver as AndroidDriver instead of AppiumDriver, then you will be able to use this method. Since this is a method used only for Android, you can use this if you use Android Driver. findElementByAndroidUIAutomator() – How to use this method Let us first start with understanding how this method is exposed in Appium. In this article, you will have a look at the some of the ways using which Android mobile elements can be identified using findElementByAndroidUIAutomator() method. In this article, we are going to talk about one more method – UiSelector – which works exclusively on Android.Īppium in Android provides a method called findElementByAndroidUIAutomator() which uses Android’s UiSelector to identify the mobile elements. All these methods are commmon to both Android and iOS. That article talked about some of the methods (like ID, xPath, ClassName) using which you can identify mobile elements. In our Appium Tutorial series, we have covered in detail, the various methods using which you can inspect elements in your mobile app.
0 Comments
Leave a Reply. |