Appium inspector - DnavaIC/STD-Automation-testing-icsecurity GitHub Wiki

What is Appium inspector?

Appium Inspector is a GUI assistant tool for Appium, providing visual inspection of the application under test. It can show the application page screenshot along with its page source, and includes various features for interacting with the app.

image

Installation is quite simple. Download the file for your system and click "Next" through the entire process.

[!IMPORTANT]
The app is not signed, if you have doubts follow this simple guide: Installation - Appium Inspector

Configure Appium inspector

  1. In a console, type appium command and you will see a URL.
[Appium] You can provide the following URLs in your client code to connect to this server:
        http://192.168.11.131:4723/
        http://127.0.0.1:4723/ (only accessible from the same host)
  1. Set your URL in Appium Inspector

image

also you can try using localhost and your Appium port

  1. Copy the capabilities and paste inside JSON Representation secction.
{
  "platformName": "Android",
  "automationName": "UiAutomator2",
  "deviceName": "Android",
  "appPackage": "com.icsecurity.noakiosk",
  "appActivity": "com.icsecurity.fieldOfficerApp.MainActivity",
}

if you want to add more capabilities please visit https://appium.io/docs/en/2.0/guides/caps/ for more information \

ezgif com-resize

  1. initiate an Android Virtual Device (AVD), also you can connect to a physical Android device.

image

If you wish to confirm that your device is operating correctly and is accessible through ADB, use the command adb devices.

```
console ❯ adb devices

List of devices attached
emulator-5554   
```
  1. Just click "Start session" button in Appium Inspector.

Now you can instect the app in order to find elements id, xpath, class, etc.