********************************************************************** 🚀🚀🚀This course is easy step by step approach to build a practical Appium Automation testing on a real phone device, real app using Java. ********************************************************************** 00:00:00 Introduction to this course 00:01:57 Contents of this course 00:04:37 Installation of Intellij, Java, Maven 00:24:02 Installation of node in our machine 00:27:27 Installation of appium in our machine 00:30:36 Download and copy platform tools 00:35:53 Installation of Vysor in our machine 00:37:43 About the Android phone details that we are using in this course, how to connect phone to your machine via USB cable through settings 00:45:43 About the capabilities of mobile phone - so that we can configure that while using appium scripts 00:51:45 Creating a new java project for creating the appium scripts 00:56:33 About appium drivers and why is it important 01:01:40 About appium driver documentation - a quick view - which is important 01:07:20 Installation of the android sdk platform tools 01:11:22 Adding the ANDROID_HOME details in the environment variables 01:15:33 Launching mobile app using the appium scipts 01:34:12 Download and install appium inspector 01:37:00 Starting session of the appium inspector 01:42:43 About appium locator strategies and selectors 01:45:45 Using appium inspector to capture uber mobile app element locators 02:04:03 Writing appium scripts and demonstrating the test execution run of the Uber app 02:10:31 Using appium inspector to capture Reddit mobile app element locators 02:13:31 Writing appium scripts and demonstrating the test execution run of the Reddit app 02:16:18 Conclusion #appium #mobiletesting #mobile #seleniumautomation #seleniumwebdriver #webdriver #allure #reporting #report #seleniumautomation #testing #softwaretesting #java #testng #intellij #maven #selenium4 #seleniumtutorials #seleniumjava #seleniumtutorialforbeginners #seleniumautomation #cucumber #pageobjectmodel #testing #bddtesting #bddframework
Thank you very much, I didn't know anything about automation with Appium, only with this video I understood everything and I became good at it. Teaching well is difficult, good job.
Overall the best video I found on youtube, After following many videos I was getting many errors, was stuck, but this one is awesome, Thank you so much !!!
@@aceautomationacademy6926when we start appium inspector start session when we click on text box like username and password locators are not getting what should we do
I have a problem is that when I click View Device on Visor on my laptop, the device screen is stuck at Connecting to Vysor on Android. But I can still click on the screen and interact with my phone. Do you know how to fix this
Hello, hope you are doing good: apologies to answer your query after 2 weeks. This issue with Vysor getting stuck at "Connecting to Vysor on Android" while still allowing interaction is a common problem that can be caused by several factors related to USB connection, drivers, or software settings. Here are some steps you can try to fix the problem: Troubleshooting Steps for Vysor Stuck at "Connecting" Check USB Debugging and Connection Mode Ensure that USB Debugging is enabled on your Android device. You can find this option in Settings > Developer Options > USB Debugging. Ensure that the USB connection mode is set to File Transfer (MTP) or PTP, rather than just charging. Update Vysor and Drivers Update Vysor: Ensure that you have the latest version of Vysor installed on your laptop. You can update it from the Vysor website or directly through the app. Update ADB Drivers: Outdated or incompatible ADB (Android Debug Bridge) drivers can cause connectivity issues. Update or reinstall your ADB drivers. Windows: You can use the Universal ADB Driver or Google USB Driver. Mac: ADB drivers are usually included with Vysor, but ensure your system is up-to-date. Check USB Cable and Ports Sometimes, the problem is due to a faulty USB cable or port. Try using a different USB cable, preferably the one that came with your phone, and test with different USB ports on your laptop. Avoid using USB hubs or extensions; connect directly to your computer's port. Restart ADB Server Restarting the ADB server can resolve communication issues between your device and Vysor. Open a Command Prompt or Terminal window. Type the following commands: bash Copy code adb kill-server adb start-server Then, reconnect your device and restart Vysor. Check Device Permissions When you connect your device, you should see a pop-up on your phone asking to allow USB debugging. Ensure you tap Allow and check Always allow from this computer if prompted. If the pop-up doesn't appear, try toggling USB Debugging off and back on. Reset Vysor Settings Sometimes resetting Vysor settings can help. Go to Vysor settings and click on Reset App Settings. This will clear any misconfigurations that might be causing the issue. Disable Other Screen Mirroring Software If you have other screen mirroring or device management software running (like Scrcpy, Samsung DeX, or TeamViewer), these might conflict with Vysor. Close them and try reconnecting. Try Wireless Connection (Vysor Pro) If you have Vysor Pro, try connecting your device wirelessly to see if the issue persists: Enable wireless ADB on Vysor and follow the instructions to connect without a cable. Reinstall Vysor If the above steps do not work, consider uninstalling and reinstalling Vysor to ensure a clean setup.
01:07:20 I think you're trying to install Android studio, not the platform tools, the platform tools have been download and copy to c:/program files in 00:30:36 section
Hello, Sometimes, other capabilities set during the session initiation might conflict and disable certain locator strategies. Solution: Review your desired capabilities and ensure none are conflicting with -android uiautomator.
This is a very nice, useful and one of a kind video in the youtube. I followed the steps. I am getting an error, "java.lang.IllegalArgumentException: Unknown HttpClient factory netty". How do I get rid of it? Can you please help and advise, please?
I have scripted Android automation code (in python) Can we test in the same Android... By Python app to run in the background to test in the same Android phone
Hi, you can use the same android but not the same setup as the one which i demoed is of java setup but if you choose to select phython as your option then too it wont have a different setup but you can use same andriod version and phone - hope it makes sense
Hi bro could you please make a video on setting up and running both the Appium server and a Python automation script on the same Android device? I Mean... In Same Android testing (Appium server and python script execution) have to run in background In the same Android mobile Automation work also have to run Is it possible...? If it is possible make video on it...
Hi, I hope you will reply. I was going to make automation for messenger calls, messanger voice msg and youtube search for much grandma who is illiterate , is it possible with appium?
Hm, in my case to workaround the "session start error" I needed to downgrade the dependencies to: appium 9.1.0, selenium 4.18.1. I used the exact versions from the video.
Hi, I find your working of automation testing was the best, but I was able to write the program in eclipse and use vysor and run appuim but after running the eclipse I dont find any changes in the appium server and mobile app.
Yes you can if you are comfortable When working with "Java projects" in VS Code, you must have the necessary extensions installed to work with those project files.
Greetings, I hope you are doing well. I'm getting this error: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: 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?
Hi, there could be multiple reasons for this: Solution: Ensure that you have the necessary permissions to run ADB commands on the device. You can try the following: Run your development environment (e.g., IDE or command prompt) as an administrator. Ensure that your device is properly authorized for debugging. or Solution: Make sure USB debugging is enabled. Verify that the device is not in a locked state. Ensure that you accept any prompt for debugging authorization on the device.
could you help me about how to handle popup such as after install an application it will show pop-up (like allow, deny) I used UIAutomator2 , it has register watcher , but in Appium it seems not support about it and how to handle this case , because the popup can appear random , if pop up Allow User 1:55:52 appear manual we action back disappears Hope to receive your answer from you soon.
Hi : you can use the below method to handle popups public static void handlePopUp(AndroidDriver driver) { WebDriverWait wait = new WebDriverWait(driver, 10); try { // Wait for the 'Allow' button to appear and click it WebElement allowButton = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("com.android.packageinstaller:id/permission_allow_button"))); allowButton.click(); } catch (Exception e) { // If the pop-up does not appear, do nothing System.out.println("No pop-up appeared."); } }
How did reddit get logged in without any code? and the suggestions bix didnt show up in ui automator in the video right? So how did you find the element ???
Hi Rajas, there could be 2 or 3 reasons related to that: 1. the remote server of appium is not running - kindly make sure the appium server is up 2. when you are trying to run the test - real android device is not connected - hopefully the real android device is connected. 3. slowness of the machine that you are running on kindly let me know if that helps
I was getting error after doing all the apps for Uber app. Suggestion for the viewers: Try using newer versions of dependencies if you are not able to see logs for appium server on cmd. It would resolve session not creating issue
Hi Puja, looks like you have been actually successful following the steps. I dropped a comment here in another your comment box. I need some help. Can you please help me?
Thank you so much for the detailed instructions. it took a whole day to setup and understand all the things lol. but this is the best video I have seen on youtube related to automation. just a little question. i get blackscreen when a page comes where I suppose to enter email. kindly help with this issue as well Thanks a lot
Hi waqas: thanks for your kind words. one of the reason could be related to the App permissions in your device. are you able to open it manually first - could you check that.
@@aceautomationacademy6926 Hi, Yes! I can open it manually and while using vysor. But when i use appium inspector it stuck black on the page where i suppose to enter email.
hi , yes you are partially right. Appium works with Flutter-based apps, but it requires some additional setup. Appium doesn't directly support Flutter out of the box since Flutter uses a different rendering engine, which makes standard Appium element locators less effective. However, you can still test Flutter apps using Appium with the help of a Flutter driver (like the Appium Flutter driver) that bridges the gap between Appium and Flutter elements.
Yes, you can run a Python program to automate tasks on an Android app directly on the same Android device. There are several tools and frameworks available that allow you to write and execute Python scripts for Android automation