Step 2: Now click on Device Screenshot icon in UI Automator Viewer (this is the second icon as shown in the below image) Also, ensure that it is unlocked and Play Store app is opened Step 1: Make sure that your mobile phone is connected properly with USB. So, open Play Store app on your phone Inspect mobile app using UI Automator Viewerįollow the steps given below to inspect your mobile app with UI Automator Viewer – As with the previous articles in our Appium Tutorial series, we will be using Google Play Store app as an example in this case as well. Step 3: You will now need to open the app which you want to inspect. This means that the mobile phone is connected properly to your machine. When you run this command, it would show the mobile phone’s Device ID. Step 2: To make sure that the phone is connected properly, open command prompt and run adb devices command. Step 1: Connect your mobile phone to your machine via USB Connect your mobile phone to your machine using USBīefore you start inspecting elements of your mobile app, you first need to connect your mobile device to your machine via USB. It will open UI Automator Viewer window in a couple of secondsĪs we had mentioned above, you can use any of these methods to open UI Automator Viewer. Step 2.3: Double click on uiautomatorviewer. Step 2.2: Check that this bin folder contains uiautomatorviewer Generally, this location is – C:\Users\Anish\AppData\Local\Android\sdk\tools\bin (Replace ‘Anish’ with the username that you have on your machine) Step 2.1: Open the folder location where UIAutomatorViewer is installed. Follow the steps given below to use this approach – Using this method, you will navigate to the folder location where it is installed and then open it. Method 2: Open UIAutomatorViewer from its folder location UIAutomatorViewer is installed on your machine as a. UIAutomatorViewer window would open as shown below Step 1.2: Type uiautomatorviewer and then hit Enter Just follow the steps given below to open it – Method 1: Open UIAutomatorViewer from Command Prompt This is the easiest way of opening UIAutomatorViewer. Important Note: Please make sure that you have followed our Appium Tutorial guide and have installed the latest version of Android Studio and correctly setup the Android environment variables. You can follow any of these methods to open it – There are 2 ways in which you can open UIAutomatorViewer. So when you install Android Studio, UIAutomatorViewer would automatically get installed with it. UIAutomatorViewer comes with Android Studio installation package. The next few articles in this series will cover in detail, the different ways using which you can inspect your mobile app using both UIAutomatorViewer and Appium Desktop Inspector. In this article, we will start with the basics of UIAutomatorViewer. You can use this inspector for both Android and iOS apps (for iOS apps, you would need a Mac) Appium Desktop Inspector: The latest version of Appium GUI ( Appium Desktop) comes with an inspector.UIAutomatorViewer: This is a tool provided by Android Studio that lets you inspect elements in your mobile app.But for our Appium Tutorial series, we will cover the most popular and widely used tools (and supported by Android or Appium). There are many different tools that help you inspect elements in mobile apps. Different Appium Inspectors that help you identify elements in mobile app Let us now have a look at the tools that you can use to inspect these elements. This way you will be able to write code which enters login id and password in the correct fields. Here, Appium inspection process would help you “inspect” the screen and then let you uniquely identify the text fields. Now your task is to enter username and password in this screen. For example, let us suppose that you have an app with a login screen. Step 2: Perform action on the identified elementĪppium inspection process helps you solve the first step mentioned above.If you want to automate any scenario in your mobile app, then you would need to follow these 2 steps – In very simple words, Appium inspection is the process using which you can identify or find elements in your mobile app. Let us start this by understanding what Appium inspection process actually is. This is a series of 4-5 articles which would help you learn the process of identifying elements on your mobile app. Appium Inspector is the next set of articles in our Appium Tutorial series.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |