6 | Appium Step by Step | How to setup and use Appium Inspector

preview_player
Показать описание
Setup and Start Appium Inspector
00:00 Intro
00:47 What we will learn
OR

08:45 : Start Appium Inspector
As we have not yet started appium server you will get error message

09:14 Start appium server by running command appium
If you are using the web version of Appium Inspector start appium using command appium --allow-cors

Note the host and port of appium server and provide the same in Appium Inspector

Now again click on Start Session on Appium Inspector
This time you should see the error message for desired capabilities and not for appium server

12:29 Add the Desired Capabilities as per the mobile device or emulator connected to the system

deviceName - can get using command adb devices
platformName - can get using command appium driver list
If you have multiple devices connected first get the device id using adb devices then run command

app - provide the location of APK file

This command will provide the API level (e.g., “30” for Android 11, “29” for Android 10, etc.)

{
"appium:automationName": "UiAutomator2",
"appium:platformName": "Android",
"appium:platformVersion": "11",
"appium:deviceName": "4b316ae9",
}

20:53 Save and click on Start Session on Appium Inspector
This should start the session

26:39 How to use Emulator with Appium Inspector

Step 1 - Start appium appium --allow-cors
Step 2 - Start Emulator or Connect Physical Device
emulator -list-avds
emulator -avd AvdName

To start AVD in a new state (w/o maintaining the old state)
emulator -avd avd_name -no-snapshot-load

Step 3 - Run command adb devices to see the device id. Can use this for deviceName
Step 4 - Get the Android version of your device or emulator

If you have multiple devices connected first get the device id using adb devices then run command

Step 5 - Check the appium drivers available appium driver list
Step 6 - Get location for a demo APK file (for android)
Step 7 - Add all details in the Desired Capabilities of Appium Inspector

{
"appium:automationName": "UiAutomator2",
"appium:platformName": "Android",
"appium:platformVersion": "14",
"appium:deviceName": "emulator-5554",
}
Step 8 - Start Session

35:10 How to use Browserstack Devices with Appium Inspector

Use Appium Inspector desktop version
Step 1 - On Appium Inspector top menu click Select Cloud Providers and select Browserstack
Step 2 - Create account on Browserstack and get your username and accesskey
Step 3 - On Browserstack upload your application or use the demo application
Step 5 - Add the browserstack username, accesskey and desired capabilities in Appium Inspector

{
"appium:automationName": "UiAutomator2",
"platformName": "Android",
"appium:platformVersion": "9.0",
"appium:deviceName": "Google Pixel 3",
"appium:app": "bs://c700ce60cf13ae8ed97705a55b8e022f13c5827c"
}

47:15 Next Steps

▬▬▬▬▬▬▬

Share with all who may need this

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal

▬▬▬
Рекомендации по теме
Комментарии
Автор

Thanks for the super clear video. Now I start to believe I can nail it and start to automate

nlmidpl
Автор

thank you mr.ragav, i opened the calculator app after trying for 1 month.

satheeshv
Автор

You are the best, thank you so much, great videos as always

sirkv
Автор

Hello, Raghav! Thank you for your excellent work!!!
I encountered the following problem: the session is broken with error code 255 in Appium Desktop, and in the command line, it shows post -500. Appium settings as well as the application are installed on the phone. USB debugging and data transfer are enabled. Have you encountered this problem? The environment is Windows 10, Android 14 Samsung, Appium 2.5.4, Appium-Doctor 1.16.2. Environment variables have also been set. If you have encountered this problem, please advise. I have been searching for a solution for a long time, and everyone writes that you need to enable USB debugging or configure the variables.

rumpelshtilcken
Автор

Hello!
I have installed and set up everything, using your previous videos. Now, when I have started my Appium server and trying to start session on Appium inspector, I’m getting that error: “Invalid or unsupported WebDriver capabilities found ("undefined"). Ensure to only use valid W3C WebDriver capabilities”
I’m using MacOS, and I have installed all the drivers in Appium drivers, but it doesn’t help. May you give any advices, where could be the problem?

petrochenkota
Автор

Hello Mr. I want to test a windows application .exe file. What capabilities should i invoke? what do you suggest?

melihc
Автор

Thanks for the video. My company will be using Firebase app tester. How can I integrate it with my appium scripts.

ankitanag
Автор

Can you please make videos on automating desktop applications using appium in windows/Mac

pravalikamailaram
Автор

I am unable to open UIAutomateViewer on my Mac. Could you please explain why this issue is occurring?

mounithota
Автор

Thank you so much for the great video.
But it has error on my side. I run the Virtual device Android 15, and Appium Inspector can start the session to open the device. But when I try to add the appium:app, It has an error:
Failed to create session. Request timed out.
I used Mac and I tried many apps but none of them can work.
Could you please give me advice?

maithithuha
Автор

hi ragav, i'm getting this Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device in 20000ms when i try to run on my real device, thank you for ur amezing vdos

TRB
Автор

is this work for flutter app and will this driver work for flutter too?
and please create the series in Javascript

subratregmi-yzzu
Автор

adb command is not running in my machine. how to setup that

prateekverma
Автор

Hi Raghav Pal very informative session. In my case when ever run Appium Inspector android Image will display mirror of my application . Please kindly help me

raghavendrabn
Автор

Seems topics from appium inspector are not available in doc @Raghav

Someone_
Автор

Sir, I keep getting this error message on Appium inspector "Error
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Either provide 'app' option to install '.activity.SplashActivity t132' or consider setting 'noReset' to 'true' if '.activity.SplashActivity t132' is supposed to be preinstalled." I followed your instructions very carefully over and over again, but I am still getting this error ...please help. Here is a copy of my Json Rep.
{
"appium:platformName": "Android",
"appium:deviceName": "R58RC322HNL",
"appium:appPackage": ".activity.SplashActivity t132",
"appium:automationName": "UiAutomator2",
"appium:appActivity": "com.modanisa",
"appium:platformVersion": "12"
}

Marwa
Автор

hello sir This series is python with appium or java with appium

saicharanboddukuri
Автор

Hi Raghav, I followed all the steps as suggested and could install in my m1 Mac, but still I could see 1 error in installing the app in the emulator. It return an error as

Srikant-wi
Автор

Greetings Sir, I hope you are doing well.
I'm getting this Appium Inspector error when I start the session with my real Android device.
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command -P 5037 -s RZCW50D238B shell cmd package list packages' exited with code 255'; Command output: Exception occurred while executing 'list': java.lang.SecurityException: Shell does not have permission to access user 150

How can I solve this issue?
Thank you!

atik