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

  Рет қаралды 7,161

Automation Step by Step

Automation Step by Step

Күн бұрын

Setup and Start Appium Inspector
00:00 Intro
00:47 What we will learn
02:05 Download and install Appium Inspector github.com/appium/appium-insp...
OR
Use web version: inspector.appiumpro.com/
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
platformVersion - can get using command adb shell getprop ro.build.version.release
If you have multiple devices connected first get the device id using adb devices then run command
adb -s DEVICE_ID shell getprop ro.build.version.release
app - provide the location of APK file
adb shell getprop ro.build.version.sdk
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",
"appium:app": "/Users/raghavpal/Katalon Studio/Android Testing Project/androidapp/APIDemos.apk"
}
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
adb shell getprop ro.build.version.release android version
If you have multiple devices connected first get the device id using adb devices then run command
adb -s DEVICE_ID shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk api level
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",
"appium:app": "/Users/raghavpal/Katalon Studio/Android Testing Project/androidapp/APIDemos.apk"
}
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 4 - If needed can use capabilities generator www.browserstack.com/app-auto...
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"
}
Ref: appium.github.io/appium-inspe...
Browserstack Capabilities Generator - www.browserstack.com/app-auto...
SauceLabs Capabilities Generator - saucelabs.com/products/platfo...
LambdaTest Capabilities Generator - www.lambdatest.com/capabiliti...
47:15 Next Steps
Document - docs.google.com/document/d/e/...
All Free Tutorials 🟢 AutomationStepByStep.com/
▬▬▬▬▬▬▬
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
▬▬▬

Пікірлер: 51
@user-nl6mi9dp4l
@user-nl6mi9dp4l Ай бұрын
Thanks for the super clear video. Now I start to believe I can nail it and start to automate
@RaghavPal
@RaghavPal Ай бұрын
Glad it helped Kateryna
@mohammedmshal3246
@mohammedmshal3246 Ай бұрын
Thank you so much sir , great work
@RaghavPal
@RaghavPal Ай бұрын
Most welcome
@satheeshv2244
@satheeshv2244 2 ай бұрын
thank you mr.ragav, i opened the calculator app after trying for 1 month.
@RaghavPal
@RaghavPal 2 ай бұрын
So happy to know this Satheesh
@reviewkiemtiencucde825
@reviewkiemtiencucde825 2 ай бұрын
thank you, you are best
@RaghavPal
@RaghavPal 2 ай бұрын
Most welcome Kiếm
@sirk3v
@sirk3v Ай бұрын
You are the best, thank you so much, great videos as always
@RaghavPal
@RaghavPal Ай бұрын
Glad you like them Kevin
@sirk3v
@sirk3v Ай бұрын
@@RaghavPal hi, could you do one on how to configure test reporting from appium with allure on the ci?
@RaghavPal
@RaghavPal Ай бұрын
Making a lecture on this may take time.. for now here are the steps to configure test reporting with Appium, TestNG, and Allure for a Maven project. Here's a step-by-step guide: 1. Setting up the Project: - Create a new Maven project. - Configure the `pom.xml` file with dependencies for Appium, TestNG, and Allure Reports. 2. Appium Configuration: - Implement a configuration class that initializes the `AppiumDriver` instance based on desired capabilities. - Use desired capabilities to specify device information, platform details, app path, and other configurations. - Take runtime environment variables (OS, execution place, locale, thread count) to dynamically create the driver for local or cloud-based devices. 3. TestNG Test Cases: - Create test classes with annotated methods representing different test scenarios. - Leverage the Page Object Model (POM) and create an abstract class at the screen level to handle common functionality between Android and iOS applications. - Use a business logic layer to handle test logic (data entry, result validation). - Invoke methods from the screen abstract class based on the OS and driver. 4. Test Data and Configuration: - Store test data and environment configurations in JSON files for better organization. - Implement a JSON reader to fetch data from files. 5. TestNG XML Configuration: - Create a TestNG XML configuration file to control the test runner and manage test suites. - Define test suites, specify test classes, and set test parameters in the XML file. - Use runtime environment variables to select the operating system (Android or iOS) for testing. 6. Test Context for Data Passing: - Use a test context object to hold shared data or objects across different test cases. - Pass information between test methods by storing and retrieving data from the test context. 7. Maven Build and Execution: - Run the Maven build command to compile the code and resolve dependencies. - Use `mvn test` to execute tests, triggering the TestNG runner defined in the XML configuration. 8. Allure Reports Integration: - Integrate Allure Reports into the framework. - Annotate test methods with Allure annotations like `@Step`, `@Description`, and `@Attachment` to enhance the report with contextual information and artifacts. Remember to adapt these steps to your specific Maven project structure --
@petrochenkota
@petrochenkota Ай бұрын
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
@petrochenkota Ай бұрын
So issue is solved after I have added all needed capabilities
@RaghavPal
@RaghavPal Ай бұрын
The error message you're encountering-"Invalid or unsupported WebDriver capabilities found"-usually occurs when the desired capabilities provided to Appium Inspector are not in the expected format. Let's troubleshoot this: 1. Check Desired Capabilities Format: - Ensure that you're using the correct format for desired capabilities. They should be specified as a JSON object with key-value pairs. - For example, if you're testing an Android app, the desired capabilities might look like this: ```json { "platformName": "Android", "appPackage": "com.xxx.xyz", "appActivity": "com.xxx.xyz.xyzActivity" } ``` - Make sure you're not missing any required capabilities. 2. Vendor-Specific Capabilities: - If you're running tests on a remote vendor (e.g., Sauce Labs or BrowserStack), put the capabilities into vendor-specific sections (e.g., "sauce:options" or "bstack:options"). - Appium Inspector enforces strict compatibility with the W3C WebDriver specification, so ensure your capabilities adhere to it⁴. 3. Automatically Add Necessary Appium Vendor Prefixes: - When starting Appium Inspector, make sure to check the option to "Automatically add necessary Appium vendor prefixes on start". This ensures that the capabilities are correctly formatted². 4. Remote Path Configuration: - If you're starting the Appium Inspector without specifying the remote path, it might pick up the default path ("/"). Define the remote path as "/wd/hub" when starting the server³. 5. Appium Version Compatibility: - Verify that your Appium version is compatible with the desired capabilities format. Some changes might occur between different Appium versions. --
@melihc2918
@melihc2918 25 күн бұрын
Hello Mr. I want to test a windows application .exe file. What capabilities should i invoke? what do you suggest?
@RaghavPal
@RaghavPal 24 күн бұрын
Melih Let's break down the steps to set up Appium for testing a Windows application (.exe file) using Appium 2.x. Step 1: Choose the correct driver For testing a Windows application, you'll need to use the WinAppDriver. This driver is specifically designed for automating Windows desktop applications. Step 2: Set up the capabilities To set up the capabilities, you'll need to create a `DesiredCapabilities` object and add the required capabilities. Here are the essential capabilities you'll need: * `platformName`: Set to `"Windows"` to indicate that you're testing a Windows application. * `platformVersion`: Set to the version of Windows you're testing on (e.g., `"10"` for Windows 10). * `deviceName`: Set to `"WindowsPC"` to indicate that you're testing on a Windows PC. * `app`: Set to the path of your `.exe` file (e.g., `"C:\\Path\\To\\Your\\App.exe"`). * `automationName`: Set to `"Windows"` to specify the automation technology used by WinAppDriver. Here's an example of how your capabilities might look: ```java DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("platformName", "Windows"); capabilities.setCapability("platformVersion", "10"); capabilities.setCapability("deviceName", "WindowsPC"); capabilities.setCapability("app", "C:\\Path\\To\\Your\\App.exe"); capabilities.setCapability("automationName", "Windows"); ``` Additional suggestions * `ms:waitForLaunch`: Set to `true` to wait for the application to launch before starting the test. * `ms:waitForIdle`: Set to `true` to wait for the application to become idle before starting the test. Here's the updated example: ```java DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("platformName", "Windows"); capabilities.setCapability("platformVersion", "10"); capabilities.setCapability("deviceName", "WindowsPC"); capabilities.setCapability("app", "C:\\Path\\To\\Your\\App.exe"); capabilities.setCapability("automationName", "Windows"); capabilities.setCapability("ms:waitForLaunch", true); capabilities.setCapability("ms:waitForIdle", true); ``` Step 3: Create an Appium driver instance Create an instance of the Appium driver, passing in the capabilities object: ```java AppiumDriver driver = new AppiumDriver -
@rumpelshtilcken2239
@rumpelshtilcken2239 2 ай бұрын
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.
@RaghavPal
@RaghavPal 2 ай бұрын
Rumpel It sounds like you are facing a connection issue with Appium when trying to run tests on your Android device. The error code 255 or post -500 can sometimes be tricky to troubleshoot, but here are a few suggestions that might help you resolve this problem: 1. Check Appium Logs: - Look into the Appium logs to see if there are more detailed error messages or clues about what might be causing the issue. This can provide insights into what specifically went wrong during the session setup. 2. Update Appium and Dependencies: - Ensure that you are using the latest version of Appium and all its dependencies. Sometimes, compatibility issues or bugs in older versions can cause unexpected errors. Consider updating to the latest stable release of Appium. 3. Restart Appium Server: - Try restarting the Appium server, as well as your computer and Android device. This simple step can sometimes resolve connectivity issues by resetting the environment. 4. Check USB Connection: - Double-check the USB connection between your computer and Android device. Use a different USB cable or port to rule out any physical connection issues. 5. Verify Developer Options: - Confirm that USB debugging mode is enabled on your Android device. Additionally, check other developer options related to ADB connections and USB configurations to ensure everything is set up properly. 6. Verify Appium Server Configuration: - Review your Appium server settings and capabilities to make sure they are configured correctly for the Android device and application you are testing. Ensure that the desired capabilities match the device settings and application details. 7. Permissions and Firewall Settings: - Check if any security software or firewall settings on your computer might be blocking the connection between Appium and the Android device. Temporarily disable these security measures for testing purposes. --
@rumpelshtilcken2239
@rumpelshtilcken2239 2 ай бұрын
@@RaghavPal Thank you, Raghav! I will try to find the problem!
@mounithota5156
@mounithota5156 2 ай бұрын
I am unable to open UIAutomateViewer on my Mac. Could you please explain why this issue is occurring?
@RaghavPal
@RaghavPal 2 ай бұрын
Mouni Are you trying to use UIAutomatorViewer or Appium Inspector. Please check and let me know with specific error and message you are facing
@prateekverma4970
@prateekverma4970 Ай бұрын
adb command is not running in my machine. how to setup that
@RaghavPal
@RaghavPal Ай бұрын
Prateek If you're encountering issues with the `adb` command, here are some steps you can take to troubleshoot and set it up correctly: 1. Check if ADB is Installed: First, verify that ADB is installed on your system. You can do this by running the following command in your terminal: ``` ~/Library/Android/sdk/platform-tools/adb ``` If it prints output, ADB is installed. If not, proceed to the next steps. 2. Add ADB to Your System Path: - Open your terminal and edit your shell profile file (usually `~/.bash_profile` or `~/.zprofile` if you're using Zsh). - Add the following lines to the file: ```bash export PATH=~/Library/Android/sdk/tools:$PATH export PATH=~/Library/Android/sdk/platform-tools:$PATH ``` - Save the file and either restart your terminal or run: ```bash source ~/.bash_profile ``` (or `source ~/.zprofile` if using Zsh). 3. Restart ADB: - If ADB was already running, kill it using: ```bash adb kill-server ``` - Then start it again: ```bash adb start-server ``` 4. Check Android Studio and SDK Manager: - Launch Android Studio. - Go to Tools > Android > SDK Manager. - Make sure Android SDK Platform-Tools is installed. 5. Enable USB Debugging on Your Phone: - On your Android device, go to Settings > About phone. - Tap on Build number multiple times until you see a message saying you're a developer. - Go back to Settings, and now you'll find a Developer options menu. - Enable USB debugging. 6. Restart Your Terminal: Sometimes changes to the PATH take effect only after restarting your terminal. Remember to replace `` with your actual username in the paths above --
@subratregmi-yz4zu
@subratregmi-yz4zu 2 ай бұрын
is this work for flutter app and will this driver work for flutter too? and please create the series in Javascript
@RaghavPal
@RaghavPal 2 ай бұрын
I will plan Subrat
@786Marwa
@786Marwa 19 күн бұрын
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" }
@RaghavPal
@RaghavPal 18 күн бұрын
Iqra Let's break down the error message and identify the issue step by step Key Points: 1. The error message is related to creating a session with Appium. 2. The error is caused by the `appPackage` value `.activity.SplashActivity t132`. 3. The error message suggests two possible solutions: * Provide the `app` option to install the app. * Set `noReset` to `true` if the app is already preinstalled. Analysis: From the JSON representation, we can see that: * `appPackage` is set to `.activity.SplashActivity t132`, which is not a valid package name. It seems to be a combination of an activity name (`SplashActivity`) and a device identifier (`t132`). * There is no `app` option provided in the JSON representation. Possible Solutions: 1. Provide the correct `appPackage` value: Replace `.activity.SplashActivity t132` with the actual package name of the app you want to test. For example, if the app's package name is `com.modanisa`, update the `appPackage` value to `com.modanisa`. 2. Provide the `app` option: If you want to install the app from a file, provide the `app` option with the path to the APK file. For example: ```json { "appium:platformName": "Android", "appium:deviceName": "R58RC322HNL", "appium:app": "/path/to/your/app.apk", "appium:appPackage": "com.modanisa", "appium:appActivity": "com.modanisa", "appium:automationName": "UiAutomator2", "appium:platformVersion": "12" } ``` 3. Set `noReset` to `true`: If the app is already installed on the device, set `noReset` to `true` to avoid reinstalling the app. For example: ```json { "appium:platformName": "Android", "appium:deviceName": "R58RC322HNL", "appium:appPackage": "com.modanisa", "appium:appActivity": "com.modanisa", "appium:noReset": true, "appium:automationName": "UiAutomator2", "appium:platformVersion": "12" } ``` Try one of these solutions, and see if it resolves the error -
@Someone_2923
@Someone_2923 Ай бұрын
Seems topics from appium inspector are not available in doc @Raghav
@RaghavPal
@RaghavPal Ай бұрын
Its there.. check Setup and Start Appium Inspector
@Someone_2923
@Someone_2923 Ай бұрын
@@RaghavPal Sorry Raghav. I was searching on part 3,4,5 doc... Thanks for your quick reply
@TRB202
@TRB202 2 ай бұрын
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
@RaghavPal
@RaghavPal 2 ай бұрын
Nazra is your device setup properly. After connecting your real device, if you open command line and run command adb devices, do you get your device id. Have you updated the desired capabilites in Appium Inspector accordingly. After this Check the following: 1. Device Connection: - First, ensure that your real Android device is properly connected to your computer via USB. - Check if the device appears in the list of connected devices using the `adb devices` command in your terminal. If it doesn't, make sure USB debugging is enabled on your device. 2. Appium Configuration: - Verify that your Appium configuration is correct. Specifically, check the following parameters in your desired capabilities: - `deviceName`: Make sure it matches the name of your connected Android device. - `platformName`: Set it to `"android"`. - `appPackage` and `appActivity`: These should correspond to the package name and main activity of your app. - `noReset`: Set it to `true` if you want to reuse the app state between sessions. 3. Server Path: - Appium 2.0 uses a different default server path. Ensure that you're using the correct path in your configuration. - If you're migrating from Appium Desktop (which works with Appium 1.x), update the remote server path from `/wd/hub` to just `/` in Appium Inspector 4. Uninstall UIAutomator: - Some users have reported success by uninstalling the UIAutomator apps from their devices. - Go to your device's Settings > Apps, search for "uiautomator," and uninstall any related apps. - This step can help resolve issues when the session crashes multiple times 5. Check Server Address: - Verify that the server address in your code matches the actual Appium server name. - Sometimes incorrect server addresses can lead to session creation failures. 6. Update Appium: - Ensure that you're using a compatible version of Appium. Consider updating to the latest stable release if you haven't already. Remember to double-check your configuration, verify the device connection, and follow the steps above. Hopefully, this will help you create a successful session with your real Android device --
@saicharanboddukuri270
@saicharanboddukuri270 2 ай бұрын
hello sir This series is python with appium or java with appium
@RaghavPal
@RaghavPal 2 ай бұрын
Sai till now all these sessions are common and deal with the basic setup of appium, android, ios env, appium inspector etc. Not yet started with appium client languages
@binhlethanh5682
@binhlethanh5682 2 ай бұрын
Hello Raghav, in the next videos of this series, which language will you use for appium?
@RaghavPal
@RaghavPal 2 ай бұрын
Bình as of now some videos will be dedicated to the setup as we have iOS setup pending. I plan to make this series to enable beginners get started with the complete setup which mostly is the tricky part in Appium and then decide on a language and progress further as per the project needs.
@subratregmi-yz4zu
@subratregmi-yz4zu 2 ай бұрын
@@RaghavPal create the series in JS
@raghavendrabn9842
@raghavendrabn9842 6 күн бұрын
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
@RaghavPal
@RaghavPal 5 күн бұрын
Raghavendra Step 1: Check Appium Inspector settings First, let's check if there are any settings in Appium Inspector that could be causing this issue. Here are a few things to verify: * Are you using the latest version of Appium Inspector? * Have you tried resetting the Appium Inspector settings to their default values? * Is the "Flip Image" or "Mirror Image" option enabled in Appium Inspector? If so, try disabling it. Step 2: Check Android device settings Next, let's investigate if there are any Android device settings that could be causing the issue: * Is your Android device's screen orientation set to "Auto-rotate" or "Landscape" mode? Try setting it to "Portrait" mode to see if that resolves the issue. * Are there any accessibility features enabled on your device that could be causing the image to be mirrored? Step 3: Check Appium server settings Now, let's examine the Appium server settings: * Are you using a custom Appium server configuration? If so, check if there are any settings that could be causing the image to be mirrored. * Try running the Appium server with the default settings to see if the issue persists. Step 4: Verify app implementation It's possible that the issue lies within your app's implementation: * Is your app using any custom graphics or rendering libraries that could be causing the image to be mirrored? * Are there any layout or view settings in your app that could be causing the image to be flipped? Step 5: Test with a different device or emulator To isolate the issue, try testing Appium Inspector with a different Android device or emulator: * Does the issue occur on multiple devices or emulators, or is it specific to one device? * If you're using an emulator, try creating a new emulator instance to see if the issue persists. -
@raghavendrabn9842
@raghavendrabn9842 2 күн бұрын
@@RaghavPal Thanks for replay with your valuable time. I tried each and every step you mention but no luck. please share email id i will share image
@RaghavPal
@RaghavPal 15 сағат бұрын
can upload on any image sharing website and share the link here
@pravalikamailaram4269
@pravalikamailaram4269 2 ай бұрын
Can you please make videos on automating desktop applications using appium in windows/Mac
@RaghavPal
@RaghavPal 2 ай бұрын
Sure I will plan on this Pravalika
@user-kr5cm3er3h
@user-kr5cm3er3h 2 ай бұрын
Can you pleas upload the 7th video
@RaghavPal
@RaghavPal 2 ай бұрын
done
@atik4489
@atik4489 17 күн бұрын
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 'C:\\Users\\SQA\\SDKTools\\platform-tools\\adb.exe -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!
@RaghavPal
@RaghavPal 17 күн бұрын
Atik Let's break down the error message and work through the solution step by step. Error Message Analysis The error message indicates that Appium Inspector is unable to create a session with your real Android device due to an unknown server-side error. The original error is related to executing an `adb` command, specifically `adb shell cmd package list packages`, which is used to retrieve a list of installed packages on the device. The error code 255 suggests that the command execution failed, and the command output provides more information about the error: `java.lang.SecurityException: Shell does not have permission to access user 150`. Step-by-Step Solution To resolve this issue, follow these steps: 1. Enable USB Debugging and Grant Permissions * Connect your Android device to your computer using a USB cable. * Go to your device's Settings > Developer options > USB debugging and ensure it is enabled. * You may also need to grant permission to the computer by selecting "Allow USB debugging" on your device. 2. Restart the ADB Server * Open a command prompt or terminal window on your computer. * Navigate to the platform-tools directory where `adb.exe` is located (in this case, `C:\\Users\\SQA\\SDKTools\\platform-tools\\`). * Run the command `adb kill-server` to stop the ADB server. * Run the command `adb start-server` to restart the ADB server. 3. Check ADB Permissions * Run the command `adb shell pm list packages` to test if ADB has the necessary permissions to access the device. * If you encounter the same error, try running the command with elevated privileges using `adb root shell pm list packages`. 4. Grant Shell Permission to Access User 150 * Run the command `adb shell pm grant android.permission.INTERACT_ACROSS_USERS android.uid.system` to grant the shell permission to access user 150. * Alternatively, you can try running `adb shell pm grant android.permission.INTERACT_ACROSS_USERS ` replacing `` with the package name of the app you're trying to automate. 5. Restart Appium Inspector * Close and restart Appium Inspector. * Try creating a new session with your Android device again. By following these steps, you should be able to resolve the error and successfully create a session with your Android device using Appium Inspector -
@atik4489
@atik4489 16 күн бұрын
@@RaghavPal Thank you very much!
7 | Appium Step by Step | Complete Hands On DEMO and Recording with Appium Inspector
1:00:12
1 | Appium Step by Step | Basic Setup on Windows and Mac OS
35:26
Automation Step by Step
Рет қаралды 12 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 37 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 7 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 44 МЛН
Appium Setup On Windows Platform | 2024 Latest Setup
50:05
AUTOMATION WITH PRIYANKA
Рет қаралды 7 М.
Mobile Automation Testing using WebdriverIO
1:29:15
SDET Unicorns by Dilpreet Johal
Рет қаралды 32 М.
How to Use NotebookLM (Google's New AI Tool)
25:50
Tiago Forte
Рет қаралды 580 М.
MOBILE Automation TESTING with APPIUM + WEBDRIVER.IO (ANDROID)
1:00:27
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2 МЛН
Tracking Cybercrime on Telegram
23:26
John Hammond
Рет қаралды 311 М.
🍎 MOBILE Automation TESTING with APPIUM + WEBDRIVER.IO (IOS)
48:06
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 37 МЛН