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.
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
- In a console, type
appiumcommand 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)
- Set your URL in Appium Inspector
also you can try using localhost and your Appium port
- 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 \
- initiate an Android Virtual Device (AVD), also you can connect to a physical Android device.
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
```
- Just click "Start session" button in Appium Inspector.
Now you can instect the app in order to find elements id, xpath, class, etc.