No video
Automate Mobile application using Appium Selenium
This video will help you to automate mobile native and hybrid application using Appium and Selenium Webdriver.
This video will cover download, install and run test on android devices.
Same article published on my blog
learn-automation.com/automate-...
~-~~-~~~-~~-~
Please watch: "How To Create Maven build For Selenium Framework"
• How To Create Maven bu...
~-~~-~~~-~~-~
Пікірлер: 253
Thanks for sharing Mukesh! Really appreciate it! Pretty clear, concise and well-structured tutorial :)
@Mukeshotwani
6 жыл бұрын
+Diana Lorena Ortiz Libreros thanks Diana I am glad you Liked it. Keep watching and let me know if any help from my side. 😊
@dilorly
6 жыл бұрын
Mukesh otwani sure! I will looking for you :)
Thanks Mukesh. Really appreciated for your clear and concise tutorial
@Mukeshotwani
6 жыл бұрын
Thanks Sarker. Keep learning
Brilliant stuff Mukesh! Loved it! Thank you!
@Mukeshotwani
8 жыл бұрын
Thanks Gupta ji
Thanks Mukesh, Its very helpful and easy to understand. I have watched all videos related to Appium selenium. Everything is working fine. waiting for you upcoming videos like how to find element and xpath , please post soon. Thanks a lot!!!!!!
@Mukeshotwani
8 жыл бұрын
Hey great :) sure will upload soon.
Hi Mukesh.. Thanks for sharing this video. It´s amazing. Could you share the pom (or just the dependencies) and maven repository url for that java code mentioned in this video?
Hello, very good tutorial, thanks for buying. I have a query, it is possible to measure or capture the response time it takes to load the objects, I need to validate that the objects appear but also how long they take to appear. Thank you so much.
Which one is best for Android and iOS mobile automation?I am looking for an common automation framework for minimal maintainance.Could you please suggest me.I am new to mobile selenium automation.
hi mukesh, which is the emulator device, did u seperately installed this device? here you run the test from eclipse using run as java application,so how eclipse configured to run this,can we run test from cli.
Hello. Great video congratulations. One doubt, is it possible to use selenium on real devices, using for example the firefox driver in headlles mode? Do you have a video about it? Thank you.
Good explanation. I want to try the same with Ruby instead of Java. Can you please help me on the same. basically i want to write a small prm in appium using ruby.
Thanks Mukesh. Very helpful for beginners.
@Mukeshotwani
8 жыл бұрын
Thanks Sri
Hi Mukesh, i have gone through the tutorial but after running the test i am not able to click any button on the device app, but the getText() method is working fine. I am using Appium desktop, Selenium standalone server 2.51.0, Java client 5.0.0 Beta9.
Hii Mukesh Is it mandatory to whenever we want to execute test case in mobile testing we have to install application every time. it means can we run our test case without again installation of application. means can we run on previous installed application . plz help me . Thank you .
Hello Mukesh, Thanks for the videos, they are very helpful. Can you please show how to launch an app that is already installed on a phone like Twitter, Facebook, WhatsApp ect. Also if you can post some videos on usage of AndroidDriver as well? That will be very helpful. Thanks.
Hi Mukesh, can we automate non-web based mobile application by Appium like any mobile game or we want to do some change in our mobile setting so can we do it..?
Hi Mukesh, I am a big fan now for mobile automation after seeing these videos. :D Please upload the next videos soon...
@Mukeshotwani
8 жыл бұрын
Hey Gaurav, yes will upload soon.
Mukesh do you have any video around security testing using selenium + zap ? I would really appreciate if you can upload.
Hi mahesh sir, why we need team viewer? what is the purpose? and you directly installed the app through command prompt, can we do through code?
How are you inspecting element.. I don't see a video of yous for that..are you using uiautomatorviewer?
Hi Mukesh, Have you posted about how to get the xpath and id of the elements ? I want to know about it.
Which software is best for display mobile screen on laptop.?
Awesome...thanks Mukesh
hi Mukesh, Could you please tell me how do i create a bat file to integrate this in jenkins? if possible please share the batch file right now i am starting appium thru node and not able to move further with test cases..it is stoping there :(
Can u pls help in launching simulator for iphone via code ( selenium) then proceeding with testing. No manually launching appium
Thanks a lot bro..:) amazing video
@Mukeshotwani
8 жыл бұрын
Hi Sachin thanks keep visiting..
Could you please share a link to the video for finding locators of the native app in Appium ??
Hi Mukesh when i try to run the CMD command i get "adb is not recognized as an internal or external command, operable program or batch" please advice
Hi Mukesh, I tried to connect my android device using PdaNet. it is connecting but I am not able to see virtual device in my laptop. I mean in your tutorials you are showing us by performing actions on virtual mobile screen. how Can I do that? can I use team viewer? or any other tool you can recommend to me please.
Could you please tell me the name of the software that you are using to simulate your phone in your computer?
Mukesh sir, I always feel happy whenever i see your videos thank you very much for beautiful guidelines and give us right track in our professional life......sir one thing u just requesting you please make video to how to find xapth in andriod as well as in ios too..Thanks sir
Hey Mukesh, I am facing one prob. If I am using driver.hideKeyboard(); command, then the appium gets unresponsive and doesn't click on any element after that
Hi mukesh, can we do iOS native app testing using appium. Can you pls guide me.
In my setup, the Appium does not populate the Activity and Package Name . Also i dont have an edit option to populate it myself. The Drop down is blank. ? Can you please suggest me here .
Hello, Can you please Send me link of the video where you have explained hot to get the locaters and write Xpath in Appium please
Hi mukesh , I am now stuck at choosing the apk fie path in the android setting page. I ha stopped the appium server on installing the app as you have told, still these check boxes are disabled for me.
Hi Mukesh, I am unable to find the .apk file for the selendroid-test-app. I have downloaded the app but when I try to run the install command it says no .apk file and in the folder I am not finding .apk file. Can you please tell me if I am missing something here.
Hi Mukesh, Thanks Mukesh for posting videos for Appium.Please post the video for Appium Testing Framework
@Mukeshotwani
4 жыл бұрын
Will upload soon
hey man your videos are awsm, waiting for xpath videos.
@Mukeshotwani
8 жыл бұрын
Thanks Madhur
@Mukeshotwani can this run multiple threads?
Thanks for sharing this video and make us understand in simple way..
@Mukeshotwani
3 жыл бұрын
Thanks Reena I am Glad you liked it.
@reenarav184
3 жыл бұрын
@@Mukeshotwani give me some tips to learn more and understand it becoz I really wanted to ...
Hi Mukesh, Thanks for this very helpful video. Can you please tell me the software you used to cast the device on the system .
@Mukeshotwani
8 жыл бұрын
Hey Abhishek I used Vysor Chrome extension and app
Hi Mukesh, great video, thanks a lot. :) I have two queries: One, We haven't used GenyMotion yet. Does it work the same way as real device does?? Can you show how GenyMotion works? Two, I saw you ran the tests using TestNG, is it possible to show viewers how TestNG is configured with your project(also, what kind of project do you begin with, i assume it to be a standard java project.) Your reply would help me and others a lot. Thanks . --Piyush
@Mukeshotwani
8 жыл бұрын
Hey Piyush, 1- GenyMotion works slow as compared to real device. 2- For TestNG learn-automation.com/how-to-install-testng-in-eclipse/
Hi mukesh, can you please tell me how to scroll element in dropdown and dropdown is present in popup using appium
happy birthday bhai ... :)
Hi Mukesh! hope you r well! can you please tell me, how does the "testscript" in eclipse interact with the real device? do i have to add any plugin of pdanet to the eclipse? please explain. Thanks
@Mukeshotwani
8 жыл бұрын
Hey Vijay Appium will take care of this if you will provide device id. Kindly check below video for code and explanation
Hi Mukesh, I am facing a issue in appium. After open application by appium, it throw a error message "org.openqa.selenium.remote.ProtocolHandshake createSession", and suddendly execution stops after open app. How to solve this issue ?
Hi @Mukesh otwani Any plan for videos to inspect element and get locators for apps? Thanks
@Mukeshotwani
6 жыл бұрын
Not planned yet but will try my best to upload soon.
hi mukesh,i have installed whole setup and unable to run native app can u pls guide me
@mukesh when i am running my code system generates an exception like that org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "java -jar "C:\Program Files (x86)\Appium ode_modules\appium ode_modules\appium-adb\jars\sign.jar" C:\Software\selendroid-test-app-0.17.0.apk --override" can you help me to reslove this issue ?
hi mukesh,how to inspect the elements and find locators for selendroid app
Hello Mukesh , nice video. I just want to know the link for video in which you have explained about DesiredCapabilties and setting them up. Can you share the libk?
@Mukeshotwani
7 жыл бұрын
Hi Ahmed you can check video number 3 for DesiredCapability. kzread.info/dash/bejne/Zoady8eiqc_Jnrg.html
hi mukesh My appium test shows passed but no click action is performed. i have made complete setup ok but still why this happening
sir pls upload a tutorial on selenium IDE....I really love ur explanations regarding all the testing tutorials
@Mukeshotwani
7 жыл бұрын
Hi Gaurav IDE is not used widely in the market but will upload soon.
@gauravgoyal1022
7 жыл бұрын
+Mukesh otwani ....thanks a lot sir
Hello mukesh, i am working in Appium 1.4.16.1 and i am getting error :[ Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity.] i tried to find solution but not satisfied yet, plz help me to resolve this issue.
Good...very helpful for beginners mukesh...can u Plz explain how to connected physical device using genymotion
@Mukeshotwani
8 жыл бұрын
+Santhosh C Hi Santosh for real device no added security,,
Hello Master I need something like Appium in automating android apps The problem with me I don't want all these steps to get starting playing my code like linking Nox or Emulator with Appium and so on
Is you written startapplication.java file...or it will be generated automatically
@Mukeshotwani
7 жыл бұрын
We have to write manually
Hi bro, Thanks for videos i have connectivity problem please help me out I connected my oneplus cell to pc via teamviewer and i can see my phone screen on my pc sreen but when i run this cmd adb devices in cmd center its not showing my device and after running the adb install path of apk its showing device not found please help me out regarding this i am strucked here
Hi Mukesh, please share video for finding locators in Appium
I am running Appium server (Version 1.2.0-beta.1) on Mac and do not see option for Android Settings as you have shown in the video to provide Selendroid apk path. Can you help please?
@Mukeshotwani
7 жыл бұрын
Hi Vijay, Kindly use Appium Desktop to get all settings.
@vijayphalke
7 жыл бұрын
I have only Mac machine. Is that a limitation then?
Hello, I am new to automation and you tell me that eclipse I need to download in order to run this test. Thank you
@chandani310
7 жыл бұрын
Hi Diana kindly use Eclipse neon and use below link to download Eclipse www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/2/eclipse-jee-neon-2-win32-x86_64.zip&mirror_id=448
@Mukeshotwani
7 жыл бұрын
Hi Diana, Did you get the solution?
Can you post the selenium with python eclipse in appium automation?
every time i run the application it shows the permission popup which is not getting solved by mobileBy, capabilities also....any clue to disable that?
Hi Mukesh.... how to identify or inspect the element for android if any other video then please do provide the link
@Mukeshotwani
7 жыл бұрын
Hi Uday i dont have any video as of now but will create soon. You might get some other tutorials on this.
could you please let me know how to use xpath in appium
@Mukeshotwani
8 жыл бұрын
+thomas chacko Hi Thomas please follow below 2 link which will help you. toolsqa.com/mobile-automation/appium/findelement-and-findelements-commands/ software-testing-tutorials-automation.blogspot.in/2015/10/ui-automator-viewer-get-android-app.html
hi mukesh..can u please mention the simulator tool u used for the devices
@Mukeshotwani
8 жыл бұрын
+Mahender Tirumala Hi Mahender it is GenyMotion www.genymotion.com/
Good job brother
@Mukeshotwani
5 жыл бұрын
Thanks Usama :)
HI mukesh, can know how to locate elements, is there any video? Plz let me know
@Mukeshotwani
7 жыл бұрын
For mobile I dont have. I will upload soon.
Hello Mukesh, Thanks for the video this helped me a lot. I just have a question here. whenever we launch the app will it be reinstalled again? I tried to launch the app the device ID is getting reset.
@Mukeshotwani
8 жыл бұрын
+Abhishek M S In appium we have option you can select no reset and then run the test.
@MsAbhi11
8 жыл бұрын
Thanks Mukesh it worked.
@Mukeshotwani
8 жыл бұрын
Cheers
thanks.very help full for me .please uplaod next video xpath videos
@Mukeshotwani
8 жыл бұрын
Yes Lahari will upload soon.
Hi Mukesh, how can I pass headers like user agent to mobile emulator launched with Webdriver?? I tried with capabilities but it doesnt work.
@Mukeshotwani
7 жыл бұрын
Sorry I did not get your question.
Mukesh can you please make videos on latest appium version. If you have time
When I write AndriodDriver driver then eclipse giving warning "AndroidDriver is a raw type. References to generic type AndroidDriver should be parameterized"
@Mukeshotwani
8 жыл бұрын
+Ravi Nelluri It is warning u can skip.Basically it is asking which type of driver you want to instantiate
can you give me one video for native application. Now if i send data in text box than it does not go and get error: Finding 'android.widget.EditText[@index='1']' using 'XPATH' with the contextId: '' multiple: false. please give me solution.
Hi Mukesh, can you make a tutorial on how to use the Appium inspector and grab the element locators, so that we can easily grab the elements and write some test scripts for better tool interaction and knowledge...
@Mukeshotwani
7 жыл бұрын
That is my next video is all about location in Appium.
@srini15434
7 жыл бұрын
+Mukesh otwani Great, we will be waiting for it...
Hi Mukesh, Can you please post videos Appium using Javascript that would be great Thanks in Advance!
Hey Mukesh when I type adb install c:/... Selendroid.apk in command line. The response is "adb server didn't ack *failed to start daemon error:"
@Mukeshotwani
5 жыл бұрын
Hi Thabiso Can you try with different APK file?
@navyachinnari
5 жыл бұрын
@@Mukeshotwani Hi, once the application path chosen clicked on start again back to the android settings package to wait for activity is not populating automatically... please help
Hi Mukesh Its a very informative video Thank you so much and while working in eclipse what are the jars we have to import and I need some more info on what is .apk file and what we have to download from selendroid site Please reply ASAP Thank you
@Mukeshotwani
8 жыл бұрын
+Siva rama krishna Ryali Hi Siva I have covered installation part in this video please refer part 1 and part 2 kzread.info/dash/bejne/l4aYxtqhXZfbZc4.html
@kittu245
8 жыл бұрын
Ya This is fine and can you upload a video on how to find Xpath for mobile application Thanku
@Mukeshotwani
8 жыл бұрын
yup will do soon.
Hi +Mukesh otwani, Thanks for the superb tutorial. I followed the same step for testing Whatsapp but it reinstalled my Whatsapp every time I tried thus i am unable to test the same.Can you please guide me on that??
@Mukeshotwani
7 жыл бұрын
Hi Suraj you can select this option from appium then it will not install again.
@TheSurajha
7 жыл бұрын
Thanks Mukesh.Can you guide me on that please how to do so.
Hi Mukesh , now a days appium inspector is not working in windows machine, please make a video for that issue
Hello mukesh! can you please tell how you have simulated real device? I cant able to install chrome browser on genymotion virtual device so...
@Mukeshotwani
8 жыл бұрын
+subodh rajbhandari Hi Subodh try default browser in GenyMotion.
Hi Mukesh, Could you please tell me how to inspect elements in my Hybrid application.
@Mukeshotwani
7 жыл бұрын
Hi Naga this will help toolsqa.com/mobile-automation/appium/how-to-inspect-and-automate-webview-in-hybrid-app/
@NagarjunaSettipalli
7 жыл бұрын
Thank you Mukesh for your reply .... :) Now I am able to launch the App(Android). Now I want to maintain my test scripts in order. So I need a framework. Do you have any video for sample framework. It will really help me...
How did you take the xpath on mobile app?
@Mukeshotwani
5 жыл бұрын
using UiAutomateViewer
Hi, which Android emulator is that?
I was getting error by adding activity and package name.used following method capabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "io.selendroid.testapp"); capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, "io.selendroid.testapp.HomeScreenActivity"); to find packagename and activity without using appium(new version of Appium does not have setting option) use following command in command prompt adb shell "dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' in result first will be the package name and second one as activity name.
hey mukesh, when I run a code it show me error in console like Exception in thread "main" org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible and in terminal program interrupt at ..... [debug] [W3C] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) [HTTP]
Hi Sir in this example you not told how can get Xpath for editText and id for click
@Mukeshotwani
6 жыл бұрын
Hi Rahul, yes I have not created video on that.. I will do soon.
thanks a ton for this. When are you going to upload next video? Please upload it soon.. :)
@Mukeshotwani
8 жыл бұрын
Yes Saurabh will upload soon.
Hi Mukesh, 'Package' and 'Launch activity' are not generating when added the app path in the application path and pressed the start Appium server.any thing to do after this step?
@Mukeshotwani
8 жыл бұрын
+pradeep Hi Pradeep if not coming then check with developer to provide or use below article.www.toolsqa.com/mobile-automation/appium/how-to-find-apppackage-and-appactivity-for-apk-file/
Hi Mukesh thank you for the video, But I am facing an issue here, even after launching the appium server, wait for packages and other tabs are still blank they are not getting populated, kindly help me with this issue
@Mukeshotwani
8 жыл бұрын
+Praveen Avr Hi Praveen try below link www.toolsqa.com/mobile-automation/appium/how-to-find-apppackage-and-appactivity-for-apk-file/
Hello Mukesh, I am facing one major issue which has become a major bottleneck to move ahead in our automation testing project. When ever we are trying to launch the browser or any app using appium script - it is asking for the verification - if we try to launch browser it is aking for login. When we launch an app like WhatsApp - it is asking to enter the phone number for verification. We've tried all the options like in appium settings we've put no reset(enabled this checkbox). Even then no luck. Please help us with this. We are using mobile device of android version 4.4.2. Waiting for you reply.
@Mukeshotwani
7 жыл бұрын
Hey Fay you can refer below video for this kzread.info/dash/bejne/mGaWpppvpcqwY7A.html
Sir can I do regression testing in cucumber?
For iOS devices. Do I really need an Apple machine to run this or can I use a virtual machine on Windows running Mac OS X?
@Mukeshotwani
3 жыл бұрын
Yes XCode wil work with MAC
@cocoeulo3307
3 жыл бұрын
@@Mukeshotwani But will it work with MacOS virtual machine on Windows 10?
@Mukeshotwani
3 жыл бұрын
no you need MAC for XCode
@cocoeulo3307
3 жыл бұрын
@@Mukeshotwani Thanks
hi Mukesh, can u pls suggest where can we find the selendroid test app apk?
@Mukeshotwani
8 жыл бұрын
+Sai pradeep ch Hi sai download from here selendroid.io/setup.html
Hi Mukesh, Thanks for the video this helped me a lot. I am not able to found the way to identify toast messages using "UI Automater Viewer”. Could you please make a video on how to verify toast message. I have gone throw the below script but unable to read the data frm screenshot. static String scrShotDir = “screenshots”; File scrFile; static File scrShotDirPath = new java.io.File("./"+ scrShotDir+ “//”); String destFile; static AndroidDriver driver = null; public String readToastMessage() throws TesseractException { String imgName = takeScreenShot(); String result = null; File imageFile = new File(scrShotDirPath, imgName); System.out.println(“Image name is :” + imageFile.toString()); ITesseract instance = new Tesseract(); File tessDataFolder = LoadLibs.extractTessResources(“tessdata”); // Extracts // Tessdata // folder // from // referenced // tess4j // jar // for // language // support instance.setDatapath(tessDataFolder.getAbsolutePath()); // sets tessData // path result = instance.doOCR(imageFile); System.out.println(result); return result; } /** Takes screenshot of active screen @return ImageFileName */ public String takeScreenShot() { File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); SimpleDateFormat dateFormat = new SimpleDateFormat(“dd-MMM-yyyy__hh_mm_ssaa”); new File(scrShotDir).mkdirs(); // Create folder under project with name // “screenshots” if doesn’t exist destFile = dateFormat.format(new Date()) + “.png”; // Set file name // using current // date time. try { FileUtils.copyFile(scrFile, new File(scrShotDir + “/” + destFile)); // Copy // paste // file // at // destination // folder // location } catch (IOException e) { System.out.println(“Image not transfered to screenshot folder”); e.printStackTrace(); } return destFile; }
Hi mukesh I am not able to add application path, Appium emulator not allowing me
I have a question I would like to answer When I extract an code appium to Apk, can I share it Please help me
@Mukeshotwani
5 жыл бұрын
Sorry Kamal I didn't get your question.. can you explain in detail?
@kamalennaji5970
5 жыл бұрын
thank you Mukesh for your response , I want to know if I export my apk, Can I use it in other real devices. - because we use appium server with local host, are these devices should be connected to the appium server if yes how? - because I want to use my apk in other devices which is not connected to my pc, will my apk work in these devices. Thank You So Much My Brother For All Your Efforts.
Also I couldn't find video link for how to find xpath for text field and button ? can you share the link for it too? Thank you
@Mukeshotwani
7 жыл бұрын
Hi Ahmed, xpath video is on hold will upload soon.
@waheedahmed6524
7 жыл бұрын
Mukesh I have quick question I'm working on android app when I click send email button it shows different options Gmail or SMS or Whatsapp but they all have same class and resources-id using UI automator. can you tell me how can I resolve this issue?
Android Settings option not available in Appium Server
@Mukeshotwani
5 жыл бұрын
Hi Roopa new appium server has different UI. Setting option is present but with few option rest everything you have to write in code
Hi, Can you please share a video showing how to connect appium to genymotion and how to setup eclipse for this. Thanks in advance. Thanks
@Mukeshotwani
8 жыл бұрын
Hey Shri, Its quite easy just download, install, download respective android version and start the setup. In Test you can mention emulator