For the environment, refer to Previous article.
Start it up.
Start appium, start the server and click start inspector session in the upper right
A screen like this will appear. Select desired capabilities and enter the connection information in the form at the bottom left. First and foremost, there is a link to the documentation that you should look at. (I wish you could prepare something like a template ...)
I'm not sure when and how to use it from the document, so I set the following for the time being. This is also a plagiarism of people. Change the package name, app path, platform version, etc. to your own.
{
"automationName": "Appium",
"platformName": "Android",
"appPackage": "jp.production765.minori.wevbiewtest",
"appActivity": "jp.production765.minori.wevbiewtest.MainActivity",
"platformVersion": "8.1.0",
"deviceName": "Android Emulator",
"app": "/Users/minori/AndroidStudioProjects/wevbiewtest/app/build/outputs/apk/debug/app-debug.apk"
}
Click "Start Session" at the bottom right to install the app on the emulator that is running and then launch the Inspector. Now you can directly see the element names in the native app.
Recommended Posts