Definitely worth a watch series on appium . Great work done. Every detail (high to low level details) covered so nicely that even a newbie can get through all details so easily.. Thank You so much for the great work
@RaghavPal5 жыл бұрын
You're welcome Karthik
@nadeeshani58815 жыл бұрын
Thank you Raghav. Your teachings are very clear. Love from Sri Lanka
@RaghavPal5 жыл бұрын
You're welcome Nadee
@ALLINONE-lz4dd2 ай бұрын
What a session, what an explanation..... Thank you so much..
@RaghavPal2 ай бұрын
Most welcome
@albionferati25395 жыл бұрын
Hi Raghav. Very good and detailed videos, thank you for sharing. Could you make one where you find by image and click that element?
@RaghavPal5 жыл бұрын
Hi Albion, I will try to add a session on that, For instant help will request you to check online
@SankalpSharma-zc6yk Жыл бұрын
This was the simplest tutorial ever, enjoyed every piece of it Only thing the way you had shown "How to store value in string", after this after printing the stored value, if you could have also added "How to validate the stored value" then it would have been completed
@RaghavPal Жыл бұрын
I will check and update this Sankalp
@ankitshrivastava90614 жыл бұрын
Thanks, Raghav. I feel learning Appium not a big job for those who have Selenium background.
@RaghavPal4 жыл бұрын
Yes, true Ankit
@sruthi80713 жыл бұрын
Thank u so much this is my first time in automation and you are helping everyone:)
@RaghavPal3 жыл бұрын
Most welcome Sruthi
@maheedharkolipakula92225 жыл бұрын
your class is soo clear, thank u sir
@RaghavPal5 жыл бұрын
You're welcome Maheedhar
@arpitsaivastava27805 жыл бұрын
Thanks Raghav really helpful!
@RaghavPal5 жыл бұрын
You're welcome Arpit
@hayaulislam4 жыл бұрын
I want to record my mobile application for functional testing.how can i do this? Instead of writing these desired capabilities i want to be recorded all these steps.
@RaghavPal4 жыл бұрын
Hi Haya, you can, There is a session for that Check - kzbin.info/aero/PLhW3qG5bs-L8npSSZD6aWdYFQ96OEduhk Also you can check if TestProject works for you - kzbin.info/aero/PLhW3qG5bs-L_QuqpGY-B-1ifP1j4ve3fx
@chrishext24014 жыл бұрын
Thanks a lot for this video, it is very clear. Do you have similar explanation on how to use the inspector on a windows device, rather than a mac?
@RaghavPal4 жыл бұрын
Hi Chris, Generally it should be the same once you start the inspector. I will try to have a session on that
@chrishext24014 жыл бұрын
@@RaghavPal thanks for the quick reply man
@aman786khan14 жыл бұрын
You made this so easy, Thanks a lot man. If possible try to add one more video to connect the virtual device.
@RaghavPal4 жыл бұрын
Sure Aman
@LamNguyen-ge6gb5 жыл бұрын
Thanks so much for your video. I have 1 question. For applications with too many Activity. How do we find the right Activity name we need?
@RaghavPal5 жыл бұрын
Hi Lâm, Do this: 1. Unlock mobile device 2. Open CMD 3. Run command : adb devices 4. Run command : adb shell 5. On mobile store open the app that you want to check 6. Run command : dumpsys window windows | grep -E ‘mCurrentFocus’ 7. appPackage and appActivity name will get displayed. Copy from here www.automationtestinghub.com/apppackage-and-appactivity-name/
@LamNguyen-ge6gb5 жыл бұрын
@@RaghavPal Thank you for the help. I have a question? I have a question. For example with the FB application. I want to see someone's profile. Can I use the direct link? Specifically will do? And is there any software that can identify the xpath of an element?Because I use Appium Desktop and the UI has some undefined elements.
@RaghavPal5 жыл бұрын
Hi Lâm, if you can access with a direct link, you can go with it. Pls check with UIAutomator viewer or appium desktop inspector
@akhilagarwal-xq4pzАй бұрын
mobile,Andriod,Element is not recognisable in Intellij ldea what to do for that?
@RaghavPalАй бұрын
Akhil Use Appium Inspector to locate the element, verify its properties, and update your code with the correct locator. Ensure Appium server is running and connected properly.
@gisgndecan01114 жыл бұрын
Dear Raghav, thank you so much! I am able to get thru the steps and get things worked on my end! :-)
@RaghavPal4 жыл бұрын
So happy to know this
@f-22r4 жыл бұрын
Another great video, and I got it working as well.
@RaghavPal4 жыл бұрын
Glad it helped
@rajatjain16532 жыл бұрын
What a perfect video....thanks for sharing this video.
@RaghavPal2 жыл бұрын
So nice of you Rajat
@harishkumarm.m57014 жыл бұрын
Hi @ragav thanks for the great explanations. Had a query want to know whether can we perform copy and paste using key board actions like ctrl-A and ctrl-c for android
@RaghavPal4 жыл бұрын
Hi Harish, you can do, Try checking some examples online
@frankiemak60662 жыл бұрын
Another awesome video. Thank you for spending time to make this video
@RaghavPal2 жыл бұрын
Most welcome Frankie
@surbhisanchita13862 жыл бұрын
Hi Raghav , how to install appium inspector? when i am clicking on start inspector session it is taking me to git hub page.. any video where u have showed the steps to install?
@RaghavPal2 жыл бұрын
Hi Surbhi, all the videos will be in the appium playlist, Can check here - automationstepbystep.com/ In the github page of appium inspector, there is a section for Installation on diff OS, check this - github.com/appium/appium-inspector
@ramkaliappan88023 жыл бұрын
Hi Ragav , I can't view horizondal video (when you play a video in a full screen mode in mobile). I need to inspect a element in horizondal view but I cannot . Please help me with this.(Note: vertical view is not available in the app I am testing)
@RaghavPal3 жыл бұрын
Hi Ash, did you try changing the orientation to landscape with appium appium.io/docs/en/commands/session/orientation/set-orientation/ www.browserstack.com/docs/app-automate/appium/advanced-features/change-screen-orientation#:~:text=Timeouts-,Change%20screen%20orientation,to%20change%20the%20screen%20orientation.
@ramkaliappan88023 жыл бұрын
@@RaghavPal Thanks for the reply , Yes i tried that ,it did'nt work .Is there any way i can automate video play back (such moving forward and backward in time bar)
@harshal_saindane4 жыл бұрын
Hi Raghav, for Mobile automation using simulator is good or real devices? what is best practice?
@RaghavPal4 жыл бұрын
Hi Harshal, as we have lots of devices today, it can be a good model to use emulators to cover the width of the device, and test on some real devices too, like one device for each android ver (latest ones in use). We can take help from platforms like Browserstack, Saucelabs, AWS Device farm for this
@dineshdewangan83904 жыл бұрын
@Raghav, Really Helpful video. Thanks
@RaghavPal4 жыл бұрын
Glad it was helpful Dinesh
@sarveshwarmahapatro85372 жыл бұрын
Hi, it is showing me- Interactions are not available for this element and I am unable to tap
@RaghavPal2 жыл бұрын
Hi Sarveshwar, there can be several reasons for this, check this: 1 may be the Element is not loaded. Can increase wait time 2 setWebContentsDebuggingEnabled is set to false, can try setting it to true 3 all fine but still tap fails due to visibility problem -> move to tap using element coordinate instead for this element discuss.appium.io/t/unable-to-perform-action-on-element-in-native-android-app/30783 discuss.appium.io/t/elements-visible-on-appium-desktop-but-cant-interact-with-them/33692
@fernandavargasrodriguez23412 жыл бұрын
I love your tutorials, thanks a lot
@RaghavPal2 жыл бұрын
You are welcome Fernanda
@SiddharthKaleFilms4 ай бұрын
In this case have you started server manually ? can't be managed through code ?
@RaghavPal4 ай бұрын
Yes Siddharth, can check examples online
@premchandvishwakarma52864 жыл бұрын
Dear Raghav, I am facing problem in inspection of banking application where taking screenshots are not allowed. can you help me about this ?
@RaghavPal4 жыл бұрын
What is the exact issue you are facing
@priyankakamboj58802 жыл бұрын
Thank you sir. It is really helpfull
@RaghavPal2 жыл бұрын
Most welcome
@kevinzhang4374 жыл бұрын
@Raghav, Hi, Greate sharing. Thanks a lot. I have a question, Can Appium be used for test windows desktop browser application?
@RaghavPal4 жыл бұрын
Hi Kevin, for Browser applications you can use Selenium. Can find tutorial here - automationstepbystep.com/
@kevinzhang4374 жыл бұрын
@@RaghavPal Many thanks again!!
@anurahavi4 жыл бұрын
Clear explanation... thank you so much!
@RaghavPal4 жыл бұрын
You're welcome Anu
@giladhershcovitz18494 жыл бұрын
Hey Raghav, In my case everytime the calculator application is started by the automation a terms and condition message pops up I tried to automatically click the "Agree" button so it could proceed to the test itself but I didn't manage to do so with click() method, I also tried it by using singleTap() method from TouchActions class I think the element is being located fine as if I try to use getText() on the element and store the value into a variable and print the variable, it shows me a valid result. I added implicitwait and clicked the agree by myself and the test worked. So it seems to me that the problem is with the click() method that I attempted to use on the element. maybe there's another method that can be used on the element so it will be clicked? Thanks in advance!
@RaghavPal4 жыл бұрын
Hi Gilad, I using implicit waits is a good way to allow elements and objects finish loading. In case I get to know more will update
@LahiShan5 жыл бұрын
Thanks Raghav for the explanation. I'm getting error like this "An element could not be located on the page using the given search parameters." are you aware of this
@RaghavPal5 жыл бұрын
Hi Lahiru, you will have to check the statement where the error is thrown from and change the element locators
@neelimapadmawar8509 Жыл бұрын
I m also getting same error
@dennisadinata69512 жыл бұрын
hi sir, which one is preffered accessbility id or id in case both of them are available? and if we want to test cross platform android and ios. which selector is preffered that can be applied for both android and ios? thx
@RaghavPal2 жыл бұрын
Hi Dennis, can go with accessibility id discuss.appium.io/t/accessibility-id-vs-id/19200
@shwethavijaykumar72224 жыл бұрын
hello sir, Which software is used to use the mobile screen on laptopscreen
@RaghavPal4 жыл бұрын
Hi Shwetha, it's Vysor
@seguirparticipando Жыл бұрын
great work!
@RaghavPal Жыл бұрын
Thanks Napoleón
@swapnalijadhav56275 жыл бұрын
Thanks a lot for this video Raghav!! I am unable to start the session, the appium inspector simply shows the launch screen. It doesn't proceed ahead. P.S I am trying to inspect an ionic app.
@RaghavPal5 жыл бұрын
Hi Swapnali, what is the error you get. Is appium server running.
@swapnalijadhav56275 жыл бұрын
@@RaghavPal yes the server is running.....there are no errors....when I run it the app launches and displays the login screen as well....whereas on the appium inspector it just shows the launch screen.
@RaghavPal5 жыл бұрын
Hi Swapnali, you need to click on Refresh on Appium Desktop Inspector to load the current mobile screen. Pls check
@swapnalijadhav56275 жыл бұрын
@@RaghavPal oh yes!! Thanks a lot 👍
@shabbir67234 жыл бұрын
@@RaghavPal with the refresh I am able to move ahead, but is there any other way to do this without manually refreshing??
@PuligillaSanthosh4 жыл бұрын
Hi Raghava, While launching Android Calculator, it is popping up Terms and conditions everytime. I would like to close the dialog by adding click on 'Agree' When I was looking into elements available using Appium Desktop locater.... id - android:id/button1 text - Agree I would like to close it by using text 'Agree' (which I feel more meaningful) than by using Findby.id What should I do? Note: I am completely new to JAVA and Appium and starting learning from your videos very recently.
@RaghavPal4 жыл бұрын
Hi Santhosh, can check this bitbar.com/blog/appium-tip-9-how-to-automatically-dismiss-dialogs-and-autoaccept-alerts/ stackoverflow.com/questions/24635354/how-to-handle-alerts-in-android-using-appium
@praveenguptaful4 жыл бұрын
Hi Raghav, I am able to launch application from Appium Desktop client but neither session id is coming in Attach to session nor the screen image of application so that i can find locator . ,Could you please help. I am using Appium 1.18 latest verison.
@RaghavPal4 жыл бұрын
Will have to see logs for this Praveen. Can also check other comments
@vaishd2 ай бұрын
Thanks for the video Raghav, but when I provide the appPackage and appActivity for Calendar App as below using APK info app on android 14 version. it doesnt launch the app on my mobile device: cap.setCapability("appium:appPackage", "com.android.vending"); cap.setCapability("appium:appActivity", "com.android.calendar.LaunchActivity"); Can you please help
@RaghavPal2 ай бұрын
Vaishnavi To resolve the issue of not being able to launch the Calendar App using Appium, follow these steps: 1. Verify appPackage and appActivity Ensure that the appPackage and appActivity you are using are correct. For the Calendar app, they may differ based on the device or Android version. You can retrieve the correct values using the adb command: adb shell dumpsys package | grep -i calendar 2. Update Desired Capabilities Here’s a sample of how to set the desired capabilities correctly: import io.appium.java_client.android.AndroidDriver; import io.appium.java_client.remote.MobileCapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); cap.setCapability(MobileCapabilityType.DEVICE_NAME, "YourDeviceName"); // Replace with your device name cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "14"); // Replace with your Android version cap.setCapability("appium:appPackage", "com.android.calendar"); // Correct package for Calendar cap.setCapability("appium:appActivity", "com.android.calendar.LaunchActivity"); // Ensure this is correct cap.setCapability(MobileCapabilityType.NO_RESET, true); 3. Check for Additional Capabilities You may need to add appWaitActivity and appWaitPackage capabilities to ensure the app waits for the correct activity to be ready. cap.setCapability("appWaitActivity", "com.android.calendar.LaunchActivity"); cap.setCapability("appWaitPackage", "com.android.calendar"); 4. Monitor Appium Logs Run your Appium server and monitor the logs to see if there are any errors or warnings when you attempt to launch the app. Look for lines that indicate the command being executed and any errors that follow. 5. Check Permissions Ensure that the app has the necessary permissions. Sometimes, if permissions are not granted, the app may not launch properly. 6. Use ADB to Launch Manually Try launching the app manually using ADB to see if it works outside of Appium: adb shell am start -n com.android.calendar/.LaunchActivity -
@vaishd2 ай бұрын
@@RaghavPal thanks, I was able to make it work
@divyapatel97445 жыл бұрын
plzz make a video for how to connect mobile device to our pc..
@RaghavPal5 жыл бұрын
Hi Divya, its there in the playlist - kzbin.info/aero/PLhW3qG5bs-L8npSSZD6aWdYFQ96OEduhk
@meghachandrakar64594 жыл бұрын
Hello Raghav, Thank you for the nice explanation. it's working but one thing is here it will not work for appium server 17 or 18, this all things I try with v1.10.1 so it's working nicely. I just commenting for help other people. if they try with this version.
@RaghavPal4 жыл бұрын
Thanks for adding Megha
@nishitashetty79513 жыл бұрын
Hi Raghav, Right now I am trying to work on different app, in that the app initially starts with SplashActivity and then LandingActivity. How can I use 2 activities one after the other both on Appium and Selenium Could u please help on this....
@RaghavPal3 жыл бұрын
Hi Nishita, check this stackoverflow.com/questions/34587491/using-appium-to-test-multiple-activities
@surajsurya14144 жыл бұрын
Hi Raghav, When I click start session, I am getting error "An unknown server-side error occurred while processing the command. Original error: Could not find 'aapt' in ["/usr/local/share/android-sdk/platform-tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android-sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"]. Do you have Android Build Tools installed at '/usr/local/share/android-sdk'?" What is Android Build Tools here? Do I have to install it? or did I miss anything while setting Path? My path looks like this: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/ #Setting PATH for ANDROID HOME export ANDROID_HOME=/usr/local/share/android-sdk #Adding path of Platform-tools folder in PATH env variable PATH="/usr/local/Caskroom/android-sdk/4333796/platform-tools:${PATH}" Please help. Thank You.
@RaghavPal4 жыл бұрын
Hi Suraj, The issue here is appium could not find aapt.exe file in the standard locations i.e. ["/usr/local/share/android-sdk/platform- tools/aapt","/usr/local/share/android-sdk/emulator/aapt","/usr/local/share/android- sdk/tools/aapt","/usr/local/share/android-sdk/tools/bin/aapt"]. Pls check these folders manually and check if you see aapt.exe. aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Please check if you have aapt.exe at some other location on your machine. Sometimes it may be named as aapt2.exe. Check for this too. There are specific directories that the script is looking in to find it. Also ensure the environment variables (ANDROID_HOME, platform_tools) are set. Check on terminal echo $ANDROID_HOME echo $PATH To make it pe rmanent on your system use: nano ~/.bash_profile Add lines: export ANDROID_HOME=/YOUR_PATH_TO/android-sdk export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH Reopen terminal and check if it worked: source ~/.bash_profile echo $ANDROID_HOME echo $PATH After doing this run the test again and check. If this still does not work, you might want to try reinstalling the Android SDK. These links can also help : discuss.appium.io/t/cannot-run-appium-could-not-find-aapt-please-set-the-android-home-environment-variable-even-though-it-is-set/10981
@shubhambedse9542 Жыл бұрын
Dear Raghav, I'm getting Java.lang.ClassNotFoundException while running the script. Can you please help me out
@RaghavPal Жыл бұрын
Hi Shubham The Java.lang.ClassNotFoundException error occurs when the Java Virtual Machine (JVM) cannot find the class that is being requested. This can happen for a number of reasons, such as: * The class is not on the classpath. * The class is not compiled. * The class is not in the correct package. In the case of Appium, the most common cause of the Java.lang.ClassNotFoundException error is that the Appium Java client library is not on the classpath. To fix this, you need to add the Appium Java client library to the classpath. You can do this by adding the following dependency to your Maven pom.xml file: ``` io.appium java-client 8.3.0 ``` Once you have added the Appium Java client library to the classpath, you should be able to run your script without any errors. Here are some other possible causes of the Java.lang.ClassNotFoundException error: * You are using an incompatible version of the Appium Java client library. * You have a typo in the class name. * The class is not in the correct package. If you are still getting the Java.lang.ClassNotFoundException error after you have checked all of these possibilities, you can try the following: * Check the Appium documentation for more information on the Java client library. * Ask for help on the Appium forums or Stack Overflow. I hope this helps
@corejavaforeveryone88584 жыл бұрын
Hi Ragav, I want to know that appium inspecter work in MAC only or it should be work on MAC and windows
@RaghavPal4 жыл бұрын
Hi should work on both
@benticruzalphonse16675 жыл бұрын
Hi Thank you for your tutorial for appium - i am fallowing your tutorial however i am facing some problem when i connect the android devices. please help me out... i have pasted the error message ---:An unknown server-side error occurred while processing the command. Original error: Could not find 'aapt.exe' in ["C:\\Program Files\\android-sdk\\platform-tools\\aapt.exe","C:\\Program Files\\android-sdk\\emulator\\aapt.exe","C:\\Program Files\\android-sdk\\tools\\aapt.exe","C:\\Program Files\\android-sdk\\tools\\bin\\aapt.exe"]. Do you have Android Build Tools installed at 'C:\Program Files\android-sdk'?
@RaghavPal5 жыл бұрын
aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file.
@honeysinghism5 жыл бұрын
You can download aapt.exe from www.mediafire.com/file/e8ww8wbgcowbti4/aapt.exe/file It worked for me.
@abc-ey4ld2 жыл бұрын
Would the same locator finding strategy apply to iOS?
@RaghavPal2 жыл бұрын
For iOS, pls check this appium.io/docs/en/writing-running-appium/finding-elements/ www.browserstack.com/guide/locators-in-appium
@nagendragunda25673 жыл бұрын
there is no Automatic Server option in Appium desktop inspector, because i downloaded the latest version so, how could i inspect my application.
@RaghavPal3 жыл бұрын
I will check with the latest ver, For now, pls check some online examples
@CoddleUser2 Жыл бұрын
Hi Raghav, When I connect my device and enter the command (adb devices)in terminal. In this case device is listed but status is showing unauthorised. How to recover from this
@RaghavPal Жыл бұрын
If your device is listed in the `adb devices` output but the status is showing `unauthorized`, it means that the device has not been authorized to communicate with the ADB server. To fix this, you need to authorize the device. To authorize the device, follow these steps: 1. Connect your device to your computer using a USB cable. 2. On your device, open the Settings app. 3. Navigate to **About Device** > **Developer options**. 4. Enable the **Developer options** switch. 5. Scroll down and tap on **USB debugging**. 6. Tap on **OK** to confirm. Once you have authorized the device, it should show up in the `adb devices` output with a status of `device`. If you are still having trouble authorizing the device, try the following: * Restart your device. * Try a different USB cable. * Try connecting the device to a different USB port on your computer. * Make sure that you have installed the latest version of the ADB drivers. If you are still unable to authorize the device, please provide more information about your device and the steps that you are taking. This will help me to better understand the issue and provide you with more specific assistance. Here are some additional tips for troubleshooting ADB authorization problems: * Make sure that the device is unlocked. * Make sure that the device is in USB debugging mode. * Try restarting the ADB server. You can do this by running the following command in a terminal: " adb kill-server adb start-server " * Try restarting your computer. If you are still having trouble authorizing the device, you can try using a third-party tool such as Vysor. Vysor is a tool that allows you to control your Android device from your computer without having to authorize the device. I hope this helps
@CoddleUser2 Жыл бұрын
@@RaghavPal Thank You so much Raghav, for your valuable information.
@manigandanpalluru69642 жыл бұрын
Good Explanation. Through Inspector after Start, the session in the My Mobile only app is launching but in Inspector screen only displays the Home screen of the mobile. Kindly help me how to resolve this issue.
@RaghavPal2 жыл бұрын
Hi Manigandan, you may need to refresh
@manigandanpalluru69642 жыл бұрын
Ok Thank you.
@manigandanpalluru69642 жыл бұрын
Will you please suggest to me how to get all list of WebElements in the mobile page.I applied find elements concept but i have to swipe the screen every time. kindly give me the solution for this issue.
Exception in thread "main" org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. RAghav, can you pls help.
@RaghavPal5 жыл бұрын
Hi Akanksha, appium is not able to find that element. Pls check the locators using uiautomator viewer or Appium desktop inspector. Try diff locators, discuss.appium.io/t/nosuchelementexception-when-element-is-actually-present/18711/12
@anamika6704 жыл бұрын
Hi thank you for such a detailed video. I am facing a issue error: org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. I am automating calculator in MI, So it displays a terms and conditions page to accept, after i accept it and tried to click on other element it displays above error.
@RaghavPal4 жыл бұрын
Hi Anamika, will have to check the element locations. You can also try to add some wait time. You can also record and check the scripts. For this you can use tools like TestProject - kzbin.info/aero/PLhW3qG5bs-L_QuqpGY-B-1ifP1j4ve3fx
@malikfaheemawan5 жыл бұрын
really helpful
@RaghavPal5 жыл бұрын
Thanks Faheem
@GurudattaPraharaj4 жыл бұрын
Hi Raghav, I am using appium version -7.3.0 in POM. i am not able perform action on elements. getting class cast exception like: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement i can only able to perform action if i use WebElement. not by using MobileElement Or AndroidElement. is it an issue with me or version compatibility issue ?
@RaghavPal4 жыл бұрын
Hi Gurudatta, sometimes this is due to some compatibility issue with appium, selenium and java client. Can get some inputs from here - discuss.appium.io/t/remotewebelement-can-not-be-cast-to-io-appium-java-client-android-androidelement/18242/23 stackoverflow.com/questions/50096400/not-able-to-locate-element-in-chrome-by-using-appium-java
@vaishd2 ай бұрын
Hi Raghav thanks for the tutorial. I am using the latest version of java-client 9.3 and selenium 4.25.0 to run the above appium project but the error is get is "unable to resolve: import io.appium.java_client.MobileElement">. I believe the Mobile Element is deprecated so i used "WebElement" instead but still its unable to resolve it. Could you please provide a solution for this if you are aware? thank you
@RaghavPal2 ай бұрын
Vaishnavi To resolve the "unable to resolve: import io.appium.java_client.MobileElement" error in your Appium project, follow these steps: Check Dependencies: Ensure you have the correct dependencies in your pom.xml (for Maven) or build.gradle (for Gradle). Here’s an example for Maven: io.appium java-client 9.3.0 org.seleniumhq.selenium selenium-java 4.25.0 Correct Imports: Make sure you have the correct import statements: import io.appium.java_client.MobileElement; // For MobileElement import org.openqa.selenium.WebElement; // For WebElement Refresh/Rebuild Project: Refresh or rebuild your project in your IDE to ensure it recognizes the dependencies. Use MobileElement: If you're using MobileElement, ensure your code is correct: AndroidDriver driver = new AndroidDriver(/* Your Appium server URL */, capabilities); MobileElement element = driver.findElementById("your_element_id"); Update Dependencies: If issues persist, consider updating to the latest versions of Appium and Selenium. -
@vaishd2 ай бұрын
@@RaghavPal thanks for the reply. I followed the above steps again but it didnt work for me. What worked is: AppiumDriver driver = new AndroidDriver(url, cap); with Webelement import: import org.openqa.selenium.WebElement With the latest documentation: AndroidDriver is no longer generic in recent versions of the Appium Java Client library.
@RaghavPal2 ай бұрын
Great.. go with what works for you..
@tuyennguyen-yf2yi5 жыл бұрын
Thank you so much
@RaghavPal5 жыл бұрын
You're welcome
@lianaegon972 жыл бұрын
Is MobileElement still being used today?
@RaghavPal2 жыл бұрын
Yes Lian
@EliasHossein7994 жыл бұрын
Just amazing.... May Allah reward you...
@RaghavPal4 жыл бұрын
Thanks a lot for the wishes
@siddharthaupadhyay72764 жыл бұрын
Hi Sir, amazing content throughout, I am able to start the application but after that the control goes away, the app just remains open and then closes after 5 10 mins, can you please help me in getting this corrected, i have mirrored everything as it is shown in your video and cant seem to understand why the control is going away after opening the app, no errors are coming in console as well.
@RaghavPal4 жыл бұрын
Hi Siddhartha, try changing appium ver
@siddharthaupadhyay72764 жыл бұрын
@@RaghavPal thanks sir, that worked like a charm.. i am stuck at another phase now "scrollable date column is not able to select my desired number from DOB " it just selects the default date value from the ui , i tried with Select statement , even scroll to() also
@RaghavPal4 жыл бұрын
Hi Siddhartha, pls try to check some examples online for the type of object you are handling
@channel92er5 жыл бұрын
Hi, I have problem in android simulator with send key Search, i try send key 84 it not working ..so what i do ? Thanks
@RaghavPal5 жыл бұрын
Hi, what is the error. You can try recording using Appium Studio
@sureshrajan71954 жыл бұрын
Hi Raghav I am facing one issue" could not connect the server are you sure it's running" how to fix it.
@RaghavPal4 жыл бұрын
Hi Suresh, Pls check if appium server is running
@shwethavijaykumar72224 жыл бұрын
Hello sir, when i try to start session for hybrid application, it is showing "uiautomator2-server-v4.11.0.apk' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'uiautomator2ServerInstallTimeout' capability", but when i try to open calculator app(inbuilt)it is working has expected,can u please suggest . Also which appActivity to use as there will be many activities in an application
@RaghavPal4 жыл бұрын
Hi Shwetha, for time out this can help github.com/appium/appium/issues/12287 Usually the first appActivity should work or you can check with others if it does not
@shwethavijaykumar72224 жыл бұрын
@@RaghavPalHi sir,thanks forbthe respose,If i use splash screen activtiy,it is stopping there itself, it is not moving further, so can u suggest on it,
@RaghavPal4 жыл бұрын
not sure until I check your setup, Can try some online help
@ishaanpasrija13505 жыл бұрын
Need one help on starting the appium server using inspector. Error: could not find aapt.exe in the path of sdktools\platform-tools\aapt.exe It would be a great help for me if you can look onto this issue. Thanks
@RaghavPal5 жыл бұрын
Hi Ishaan, aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file. forum.katalon.com/t/could-not-find-aapt-exe/10922/10 A user solved it using below steps: 1 I installed Android Studio and 2 installed SDK from Android Studio. export ANDROID_HOME=/Users/darya1/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools 3 Edit the configuration setting of Appium server to point to the ANDROID_HOME and JAVA_HOME.
@ishaanpasrija13505 жыл бұрын
Automation Step by Step - Raghav Pal Thanks, Raghav. I just copy paste the existing aapt.exe in platform tools folder which was present in the build tools and it started working fine.
@qaengineerfp5 жыл бұрын
Hi Raghav, I am trying to automate BOX app downloaded from playstore. I am able to enter the email on login page and click next, on next page I am able to enter password and click login. But after clicking login Box mobile application closes down by itself. Any idea why it is doing so? Do I need to create another appActivity for going onto next page? or is there something else I am missing. i am new to appium. Thanks.
@RaghavPal5 жыл бұрын
Hi Saurabh, will have to see logs for this.
@demaowais4974 жыл бұрын
Hello Raghav, Thank you so much for the helpful videos . i have encountered the following error while running the code : remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The JAVA_HOME environment variable must be set for Android Tools to work properly , Kindly advice?
@RaghavPal4 жыл бұрын
Hi Dema, Pls check in your env variables if JAVA_HOME is set. Can take help from here Java on Windows - kzbin.info/www/bejne/fKLTnntugruCbKM Java on Mac - kzbin.info/www/bejne/hITZpZypZ8t6oqM
@arnavpareek46605 жыл бұрын
Where does /build-tools is present.. its not in android-sdk folder
@arnavpareek46605 жыл бұрын
[MJSONWP] Encountered internal error running command: Error: ENOENT: no such file or directory, scandir '/usr/local/share/android-sdk/build-tools' at Error (native)
@RaghavPal5 жыл бұрын
Hi Arnav, check this - discuss.appium.io/t/android-encountered-internal-error-running-command-error-enoent-no-such-file-or-directory-scandir/10026
@AnickRazibul5 жыл бұрын
What changes do I need to make If I just want to connect to Device via Appium without launching any APP?
@RaghavPal5 жыл бұрын
Hi Anu, In that case you can skip the app details like appPacakge or apk/ipa file
@ashwiniundale6195 жыл бұрын
Hi Raghav, I have added all the capabilities saved it but it's showing me an error "Could not connect to the server; are you sure it's running?" in pop when I close it then Appium server is getting stopped. Will you please help me to solve this error
@RaghavPal5 жыл бұрын
Hi Ashwini, pls checkthe appium port its running on.
@AnuragSingh-qn3xo3 жыл бұрын
Hello, Can you please help, I have added all capabilities and on click of start session, I am getting the following error please help : Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS\,tvOS' exited with code 127
@RaghavPal3 жыл бұрын
Hi Anurag, check if this works after updating carthage brew upgrade carthage stackoverflow.com/questions/64699674/unable-to-launch-webdriveragent-because-of-xcodebuild-failure-exit-code-127
@aishwaryaraj42974 жыл бұрын
Hi I am getting an error "The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output" when I try to Start my session after putting in all the Desired capabilities in Appium server. Please help!!
@RaghavPal4 жыл бұрын
Hi Aishwarya, did you try changing appium ver. Pls try and check
@aishwaryaraj42974 жыл бұрын
@@RaghavPal Yes, I did. Still not working!!
@divakarkannan23724 жыл бұрын
Hi Raghav I'm Getting Below Error An unknown server-side error occurred while processing the command. Original error: Could not find 'aapt.exe' in ["C:\\softwares\\android-sdk\\platform-tools\\aapt.exe","C:\\softwares\\android-sdk\\emulator\\aapt.exe","C:\\softwares\\android-sdk\\tools\\aapt.exe", "C:\\softwares\\android-sdk\\tools\\bin\\aapt.exe"]. Do you have Android Build Tools installed at 'C:\softwares\android-sdk'?
@RaghavPal4 жыл бұрын
Hi Divakar, Fix For those people, who are facing issue like Encountered internal error running command: Error: Could not find 'aapt.exe' in ["C:\\Android SDK\\platform-tools\\aapt.exe" You have to download bulld-tools folder where you will find aapt and aapt2.exe. To download build-tools : Navigate to tools/bin & open command prompt & Execute this command: sdkmanager "build-tools;28.0.0".
@divakarkannan23724 жыл бұрын
@@RaghavPal thank you much for updates... I will check and let me known
@jyotiradityasingh14084 жыл бұрын
After all the installation done it show that to include the plateformName capability at the time of starting appium but i have done that already. So how to solve it?
@RaghavPal4 жыл бұрын
Pls show me your Capabilities,
@salmanlifevlog4 жыл бұрын
Hi can somoeone help me. I am stuck at this. I cannot be able to click on a button This is my line of code MobileElement getstarted = (MobileElement) driver.findElements(By.id("com.logicon.amplifyd.debug:id/bt_start")); and the error is java.util.ArrayList cannot be cast to io.appium.java_client.MobileElement
@RaghavPal4 жыл бұрын
Hi Salman, instead of driver.findElements() use driver.findElement() that will find a single element and not list Pls try and let me know if this works
@amitaswal41295 жыл бұрын
Super
@RaghavPal5 жыл бұрын
Thanks for watching
@TravelltheGlobe2 жыл бұрын
Hi Raghav, Thanks for the amazing session on Appium inspector. I followed exactly the same steps as you mentioned in the video, but at the time of starting the appium inspector session, I'm not able to get the app launched on my real device connected. It only stays on the Launcher screen of the device. The same is working fine when I run as a Java Application in eclipse though. Am I missing anything here? Also, I'm using below capabilities. cap.setCapability(MobileCapabilityType.AUTOMATION_NAME, "UiAutomator2"); cap.setCapability(MobileCapabilityType.DEVICE_NAME, "Galaxy M32"); cap.setCapability(MobileCapabilityType.UDID, "RZ8T507FF3V"); cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "12"); cap.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "com.android.chrome"); cap.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, "com.google.android.apps.chrome.Main");
@RaghavPal2 жыл бұрын
will need to check error logs, can find some online resources on this
@saimohithgattu55464 жыл бұрын
Hi Raghav, When I am trying to run the code with all the available elements. i am getting an error as below: Application Started... null An element could not be located on the page using the given search parameters. Could you please tell me where could be the problem,I am using the id,className,xpath possible locators as given in the Appium desktop Inspector.But still i am not able to execute this.
@RaghavPal4 жыл бұрын
Hi Saimohith, it looks the object locator you are using is not able to identify the element on the screen. Pls check the locators again
@saimohithgattu55464 жыл бұрын
@@RaghavPal Ya i have checked the locators and also i took all the possible locators but still the same error comes everytime i run
@RaghavPal4 жыл бұрын
Will need to check if the element is inside some frame
@saimohithgattu55464 жыл бұрын
I have tried taking the locators from the UIAutomtorViewer too but the same error pops up
@RaghavPal4 жыл бұрын
Will have to check logs and take online help on this
@MrSunny23234 жыл бұрын
Hi Raghav, I am getting this error when I click start session on Appium: Error An unknown server-side error occurred while processing the command. Original error: Could not find 'adb' in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the corect Android SDK root directory path. FYI : adb devices is showing my device properly
@RaghavPal4 жыл бұрын
Hi Sunny, Pls check if you have set path of adb in env variables (system variables) Pls check this : stackoverflow.com/questions/8744758/adb-is-not-recognized-as-internal-or-external-command-on-windows
@ranjitkumar-ke6er4 жыл бұрын
HI Raghav thanks for your video howeven when i was implementing the above as per your video i got this error>>>> need ur help to sort this problem Thanks in advance:
@RaghavPal4 жыл бұрын
Hi Ranjit, will have to check this online. Pls see this Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
@shabbir67234 жыл бұрын
Hi, I try to launch the app, but get stuck at splash, when I try to set the other activity it givrs me error. { "deviceName": "Android SDK built for x86", "udid": "emulator-5554", "platformName": "Android", "platformVersion": "10", "appPackage": "com.bastrucks.worldapp.staging", "appActivity": "com.bastrucks.worldapp.presentation.onboarding.SplashActivity", "automationName": "UiAutomator2" } What change should do to move ahead to the home screen??
@RaghavPal4 жыл бұрын
Hi Shabbir, I will have to check online for this.
@shabbir67234 жыл бұрын
@@RaghavPal Hi raghav, it is working fine when I do it with code, I had issues when I tried to launch the app from appium desktop, I used the refresh button and I was able to move ahead. Keep the good work.
@vishnuvishu81362 жыл бұрын
Hi Raghav, I am following your Appium series and I found this very interesting but I am stuck in tutorial-8. I am not able to tap on any elements and showing "Interactions are not available for this element" because of I am not able to proceed. Please see the attached screenshot. Kindly request you to please help resolve the problem if possible. Thanks so much.
@RaghavPal2 жыл бұрын
Hi Vishnu, this can help github.com/appium/appium-desktop/issues/1168 discuss.appium.io/t/elements-visible-on-appium-desktop-but-cant-interact-with-them/33692/2
@ayzu7670 Жыл бұрын
Hi Raghav now that Appium desktop is no longer available. How do we use this?
@RaghavPal Жыл бұрын
With the deprecation of the Appium Desktop application, the built-in Inspector functionality is no longer available as a separate standalone tool. However, you can still access the Appium Inspector functionality through the Appium Server. Here's how you can use the Appium Inspector: Start the Appium Server: Install Appium Server on your machine and start it by running the command appium in your terminal. The Appium Server will start and listen for incoming connections on the default port 4723. Launch the Appium Desktop UI: Although the Appium Desktop application is no longer maintained, you can still launch it to access the Inspector UI. Run the command appium-desktop in your terminal, and the Appium Desktop UI will open. Connect to the Appium Server: In the Appium Desktop UI, click on the "Start Server" button to connect to the running Appium Server. Make sure the Server Address and Port match the running Appium Server's address and port (typically localhost:4723). Configure Desired Capabilities: Specify the desired capabilities in the Appium Desktop UI. Desired capabilities include information such as platformName (e.g., Android or iOS), deviceName, app package name, and app activity. These capabilities are used to establish a connection to the mobile device or emulator. Start a Session: Click on the "Start Session" button in the Appium Desktop UI to initiate a session with the connected device or emulator. Appium will start the session and establish a connection with the mobile app. Use the Inspector: Once the session is established, you can use the Inspector feature in the Appium Desktop UI to inspect the elements of your mobile app. The Inspector allows you to view the app's hierarchy, inspect individual elements, and retrieve their locators and properties. By following these steps, you can utilize the Appium Desktop UI to access the Inspector functionality and inspect the elements of your mobile app. Remember that while the Appium Desktop application is still usable for Inspector purposes, it is no longer actively maintained, and it's recommended to migrate your workflows to the Appium Server and command-line tools for long-term support
@ayzu7670 Жыл бұрын
@@RaghavPal Hi Raghav but the command appium-desktop is not being recognised as valid one. What to do now?
@RaghavPal Жыл бұрын
With the deprecation of the Appium Desktop application, you can no longer use the "appium-desktop" command. Instead, you need to use the Appium Server directly for starting the Appium session and interacting with your mobile application. To start the Appium Server, you can use the following command: appium This command will start the Appium Server and listen on the default port (usually 4723). Once the server is running, you can connect your Appium client (such as your test script or Appium Inspector) to the server to interact with your mobile application. Please note that you may need to install the Appium Server globally on your system using npm before using the "appium" command. You can do this by running the following command: npm install -g appium Make sure you have Node.js and npm installed on your machine before running the above command. Once the Appium Server is running, you can proceed with your mobile automation testing by connecting your test scripts or Appium Inspector to the running server.
@fashiondesired50924 жыл бұрын
how many software require to run appium can u name that plz
@RaghavPal4 жыл бұрын
Hi, I have discussed this here - kzbin.info/www/bejne/hGjZimaZhbiibsk
@bagasiravish24515 жыл бұрын
Hi Ragav Having Error while starting session. "An Unknown server-side error occurred while processing the command. Original error: Device vZX*******" was not in the list of connected devices."
@RaghavPal5 жыл бұрын
Hi Bagasi, pls check if you are able to get the device by running command adb devices
@hariharanr10894 жыл бұрын
Hi, Thansk for your video. Its Amazing.Could you help me to sort out the following issue. i have done all the process. When we try to "Start Session", after couple of seconds i am getting following error popup. "An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate. Original error Command 'D:\Downloads\bin\java.exe' not found. Is it installed?". But in my case i have installed java.Thanks in advance.
@RaghavPal4 жыл бұрын
HI Hari, sorry for late reply. Pls check if java env variables are set. Let me know if you still face issues
@anurahavi4 жыл бұрын
I get this error while running Appium desktop inspector. Can you please help An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
@RaghavPal4 жыл бұрын
Hi Anu, Have you checked with a diff device or appium ver Also check this - github.com/appium/appium/issues/12607
@chandana.r.kulkarni71644 жыл бұрын
HI Raghav, I'm facing problem with Click, Tap, Touch Action with appium. Unable to click anything. My code will just launch app!!! Please help.
@RaghavPal4 жыл бұрын
Hi Chandana, will need to check the logs to troubleshoot
@chandana.r.kulkarni71644 жыл бұрын
@@RaghavPal I will share logs.. Is .tap method from appium is removed? Are some of the appium methods outdated???
@RaghavPal4 жыл бұрын
I will have to check that with the latest library and documentaion. Can refer online
@2011011205 жыл бұрын
Hey Raghav, Thank you for this video. i am getting error message like "Could not start session".. please help.
@RaghavPal5 жыл бұрын
Hi Sanket, pls check if appium server is running, you can stop and try again.
@nadhiyathiya47474 жыл бұрын
Pls post how to record the scroll down by using appium inspector
@RaghavPal4 жыл бұрын
I will do a session on this Nadhiya
@chandumangam17774 жыл бұрын
hi Raghav, I facing an issue with this error "An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in" so please help me out.
@RaghavPal4 жыл бұрын
Hi Chandu, pls try this Step 1: You know where your android-sdk is installed in your system if you didnt changed the location search in ProgramFiles/Android Step 2: close eclipse. Step 3: Copy adb.exe in android-sdk/platform-tools/ folder Step 4: Paste that adb.exe in android-sdk/tools/ folder Step 5: Now open eclipse go to Windows --> Preferences choose android then click browse and select android-sdk with in few minutes stackoverflow.com/questions/6361349/android-problem-eclipse-cannot-find-adb-exe
@chandumangam17774 жыл бұрын
@@RaghavPal Thank you so much
@seiftiehari2 жыл бұрын
@@RaghavPal Hi, I have followed all your steps above, but still facing the same error, both running from IDE or appium inspector. I am using win10, Intellij idea, My device listed on cmd. appium doctor says my ANDROID_HOME & JAVA_HOME are set. This is the error: Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in ["C:\\Users\\seif\\Desktop\\android-sdk\\cmdline-tools\\tools\\bin\\platform-tools\\adb.exe" .... Do you have Android Build Tools installed at 'C:\Users\seif\Desktop\android-sdk\cmdline-tools\tools\bin'? Any idea? TIA
@seiftiehari2 жыл бұрын
@@RaghavPal Hi Raghav, this is the update, (I'm using Appium v1.22.2, Node.js v16.13.2., win10, Intellij idea, My device listed on cmd. appium doctor says my ANDROID_HOME & JAVA_HOME are set. java version "1.8.0_202". javac 1.8.0_202) I was following the steps above and restart everything, here's the new error; Failed to create session. An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of 'C:\Users\seif\AppData\Local\Temp\202217-10312-1b01cr.qtkw8\appium-uiautomator2-server-v4.24.0.apk'. Original error: Could not find 'apksigner.jar' in ["C:\\Users\\seif\\Desktop\\android-sdk\\platform-tools\\apksigner.jar" ... Do you have Android Build Tools installed at 'C:\Users\seif\Desktop\android-sdk'? Any suggestion will be appreciated. TIA
@bala59014 жыл бұрын
I have facing java.lang.NoClassDefFound error. Application have launched successfully, but the element not found.
@RaghavPal4 жыл бұрын
Hi Balaji, Try getting sdk tools from androidsdkmanager.azurewebsites.net/SDKTools
@bala59014 жыл бұрын
Automation Step by Step - Raghav Pal Thanks for your reply. I have already same sdk tool mentioned by yours. I couldn't import java-client maven dependency. So, I have download .jar file instead of maven. This is the problem of "NoClasaDefFound" error. Then how can i import maven dependency. I had always did that "clean" option from "project" and reinstall the eclipse also. But I couldn't import. Please share me any other way.
@RaghavPal4 жыл бұрын
Hi Balaji, see if this helps you - discuss.appium.io/t/getting-a-java-lang-noclassdeffounderror-io-appium-java-client-appiumdriver/12379/2
@bala59014 жыл бұрын
@@RaghavPal Thank you so much... It have been working normally.
@zarwanawaz9724 жыл бұрын
@Bala bala how you solve this error i am also getting this error.
@skptricks87985 жыл бұрын
I am getting below error message : An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'E:\\androidSDKBuild\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm install -r /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'uiautomator2ServerInstallTimeout' capability
@RaghavPal5 жыл бұрын
Hi, this issue is because of the mobile, try the below code in the "terminal" adb shell getprop if you get the response then every thing is fine, if you dont get the response then unplug the mobile then once again plug the mobile and run the above code , if it works then HURRAY .........! the code is fine .. Pls check - github.com/appium/appium/issues/8100 stackoverflow.com/questions/53333483/not-able-to-run-appium-on-my-new-android-device Check and try the following See which version of appium are you using by running from your command line: appium -v You can try with a diff version. Can also check online for a stable ver for your android ver To check your android ver Tap on the Main Menu icon. Go to the Settings. Scroll down to ‘About phone‘ and tap on it. Scroll down a little and there you notice the ‘Android Version‘
@aimantirmizi3 жыл бұрын
Hi, the inspector is now comes separately and its not getting connected with the Appium Desktop server :(
@aimantirmizi3 жыл бұрын
I am stuck at this stage, help would be appreciated. Thanks!
@RaghavPal3 жыл бұрын
I will check on this, For now can take help from online examples
@aimantirmizi3 жыл бұрын
Yes, unfortunately every tutorial has attached inspector with appium desktop, can you share some links? It would be a great help!?🙏🏻
@aimantirmizi3 жыл бұрын
Its finally working
@retheeshrr33685 жыл бұрын
Hi Raghav, I have a problem with launching device on the appium desktop client . I have set up all the desired capabilities as you mentioned in the video , but when I click Start session button , it’s throwing below error - “ An unknown server-side error occurred while processing the command. Original error. Error executing adbExec. Original error: ‘Command ‘’ c:\\users\ ath\\Downloads\\Android SDK\\platform-tools\\adb.exe’ -p 5037 -s 22#### shell pm list packages com.myos.calculator2 existed with code 3221226356’ ; Stderr: ‘’ ; Code ‘3221226356, Can you please check why this is happening .
@RaghavPal5 жыл бұрын
HI Retheesh, hope you have done settings on your mobile device, enabled usb debugging. Also check do you get device id when you run command adb devices? You can also try using a diff ver of appium desktop
@retheeshrr33685 жыл бұрын
Automation Step by Step - Raghav Pal yes Raghav, I have done setting on mobile as you mentioned and I can see the device details while running adb devices comments . But , as you mentioned it might be an issue with my appium desk top client , bcz I have installed it an year ago . I’ll try with a new appium desktop client . Thanks for the info .
@shaliniverma92332 жыл бұрын
Can we test games using appium?
@RaghavPal2 жыл бұрын
The answer is yes, but you should do a POC first
@markwilde70905 жыл бұрын
Hi Raghav, button click() is not working in android
@RaghavPal5 жыл бұрын
What is the error message Mark
@markwilde70905 жыл бұрын
@@RaghavPal I am following the exact steps as you , but nothing happens after the app is launched. click is not working, nothing happens [HTTP]
@RaghavPal5 жыл бұрын
Hi Mark, you can try increasing the timeout discuss.appium.io/t/is-there-a-way-to-increase-session-time/11334/6
@tejastoley67142 жыл бұрын
when i created session " Failed to create session. An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
@RaghavPal2 жыл бұрын
Hi Tejas, check this comment: the issue was regarding usb Debugging(Security Setting) which blocked the code from running on phone There are 2 solutions for this : 1. Enable developer options -> GO to developer option -> enable use Debugging(Security Option) -> then your code will start running properly on phone. 2. If usb Debugging(Security Option) is not visible in developers option then you need to go in Developer's options and "Enable" option with title "Diasble Permission Monitoring". -> after your code will execute perfectly
@poojayadav-hy5xv4 жыл бұрын
Hey sir, { "App": "C:\\Selenium\\workspace\\NinjaFocus.\\app-live-release.apk", "devicName": "Nokia 6", "UDID": "", "platformName": "Android", "platfromversion": "9", "appPackage": "com.ninjafocus.app", "appactivity": "com.ninjafocus.app.base.view.ui.VideoPlayActivity" } An unknown server-side error occurred while processing the command. Original error: pkg, and activity or intent action, are required to start an application
@RaghavPal4 жыл бұрын
Hi Pooja, instead of appactivity, try appActivity, spellings and cases are imp. Similarly you can check other desired capabilities
@abhikatta28833 жыл бұрын
Hi Raghav getting this error At the APP Could not obtain source: {"cause":{"sessionId":"d01f8b31-8144-4948-9626-c1663cdcc0f1","status":13,"value":{"message":"An unknown server-side error occurred while processing the command."}},"jsonwire-error":{"detail":"An unknown server-side error occurred while processing the command.","status":13,"summary":"UnknownError"},"message":"[source()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command.","status":13}
@RaghavPal3 жыл бұрын
Hi Abhi, pls check this github.com/appium/appium/issues/11867
@abhikatta28833 жыл бұрын
@@RaghavPal Hi Raghav i have attached the logs this link didnt solved my issue
@RaghavPal3 жыл бұрын
ok
@arunarondi4 жыл бұрын
Hi Raghav, after clicking on start session I am getting the below error: An unknown server-side error occurred while processing the command. Original error: Could not find 'aapt.exe' in ["C:\\Users\\venky0548\\Desktop\\android-sdk\\platform-tools\\aapt.exe","C:\\Users\\venky0548\\Desktop\\android-sdk\\emulator\\aapt.exe","C:\\Users\\venky0548\\Desktop\\android-sdk\\tools\\aapt.exe","C:\\Users\\venky0548\\Desktop\\android-sdk\\tools\\bin\\aapt.exe"]. Do you have Android Build Tools installed at 'C:\Users\venky0548\Desktop\android-sdk'? Please help me resolving this..... Thank you
@RaghavPal4 жыл бұрын
Hi Aruna, aapt.exe is the Android Asset Packaging Tool and is part of the Android SDK. Can you confirm that you have aapt.exe somewhere on your machine? There are specific directories that the script is looking in to find it. You might want to try reinstalling the Android SDK. I was reading some posts that aapt.exe may be named aapt2.exe for some SDKs. Could you check to see if that file exists on your system? You should be able to find it in: C:\Users\\AppData\Local\Android\sdk\build-tools\ If it does exist, you might be able to create a shortcut named “aapt.exe” to that file. forum.katalon.com/t/could-not-find-aapt-exe/10922/10 A user solved it using below steps: 1 I installed Android Studio and 2 installed SDK from Android Studio. export ANDROID_HOME=/Users/darya1/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools 3 Edit the configuration setting of Appium server to point to the ANDROID_HOME and JAVA_HOME. A User Comment Fix For those people, who are facing issue like Encountered internal error running command: Error: Could not find 'aapt.exe' in ["C:\\Android SDK\\platform-tools\\aapt.exe" You have to download bulld-tools folder where you will find aapt and aapt2.exe. To download build-tools : Navigate to tools/bin & open command prompt & Execute this command: sdkmanager "build-tools;28.0.0". Copy aapt.exe file from build-tools & paste it inside tools folder. THIS WILL FIX THE ISSUE :)
@arunarondi4 жыл бұрын
@@RaghavPal l will try and let you know Raghav.... Thanks for the response 🙂
@arunarondi4 жыл бұрын
Hi Raghav, my issue got resolved.... Thank you 🙂
@mudit2223 жыл бұрын
An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of 'C:\Users\guptamu\AppData\Local\Temp\202127-940-ehnyds.7a0rt\appium-uiautomator2-server-v4.17.4.apk'. Original error: Could not find 'apksigner.jar' in ........... Please help
@RaghavPal3 жыл бұрын
Hi Mudit, check if this helps github.com/appium/appium/issues/11725