Appium Tutorial

Hi everyone, thanks for visiting my blog. During my career I have used many android automation tools like Appium, Espresso , Selendroid etc. I have started this blog to share my expereince in simple and short tutorials so that any one who wants to shift from Manual to Automation can do it from the scratch.

Appium is very popularly used Automation Testing toll which supports both android and IOS and hence it is used by many organization. Below are links to the posts of Appium Tutorial which you can explore to start setting up Appium and writing your test cases

Appium Tutorials -

  Advance Appium Tutorials -

     1. Implicit and Explicit Wait in Appium
     2. Database Testing with Appium & JDBC
     3. Creating Maven Project with Appium 
     4. Jenkins Setup for Appium & Maven project
     5. Page Object Model ( POM ) in Appium
     6. Swipe Left, Right , Up & Down using Appium 
     7.How to Test Toast Messages using Appium? 
Note - Learn More About Android Studio HERE


  1. This comment has been removed by a blog administrator.

  2. Thanks for sharing your ideas on mobile application.Really useful to me.Continue sharing more like this.
    Mobile Application Training in Chennai | Mobile Apps Testing Training | Mobile Application Testing Training

  3. Hi Anuja Jain

    Can you tell me how to start and stop appium server programmatically using java code in ubuntu OS

    1. Sure I will check and share that post as well.. stay connected via social media for latest update

    2. Hi you can check this post
      You need to give path as per UNIX Environment and make sure you have install node.js via npm -(Refer

  4. Hello Anuja
    can you please help in verifying the toast message in appium

  5. hi getting the below error in appium

    info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
    > info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
    > info: [debug] Creating new appium session 8ec1d872-bce5-499e-9a5d-0260e353001b
    > info: Starting android appium
    > info: [debug] Getting Java version
    > info: [debug] Cleaning up android objects
    > info: [debug] Cleaning up appium session
    > info: [debug] Error: 'java -version' failed. Error: spawn ENOENT
    > at [object Object]. (C:\Program Files\Appium\node_modules\appium\lib\devices\android\android-common.js:1057:17)
    > at exithandler (child_process.js:633:7)
    > at ChildProcess.errorhandler (child_process.js:649:5)
    > at ChildProcess.EventEmitter.emit (events.js:95:17)
    > at Process.ChildProcess._handle.onexit (child_process.js:795:12)
    > info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT)","origValue":"'java -version' failed. Error: spawn ENOENT"},"sessionId":null}
    > info: <-- POST /wd/hub/session 500 29.641 ms - 208

  6. Can I tap using screen coordinates If not able to find id etc of elements ?

    1. Hi,
      Yes in Appium you can perform tap using co-ordinates.


  7. Thank you by the tutorials, I helped me a lot. I am new about moviles test theme and i have a doubt: How am i generate the code of the application who i want to test? that is, the bibliographies almost always give me a example code but they dont tell me where are they generate the test code?
    I would like I know this, please help me.

  8. I started the test´s world with visual studio, microsoft test manager and selenium for web and desktop application the last year, and i liked it.
    At present I am interested in automated mobile testing and i am working with appium and android studio. I have accomplished to do test examples but i dont understand How am i generate the code of the application who i want to test? the examples come with yours code.
    I saw examples with Appium on Mac and i have seen how is it generate the code.
    I have not seen test examples on windows where it is explain the generate test code whit appium and android studio.
    Thank you for yours attention

  9. Thanks for the tutorial, I been searching for this for a long time, At last reached to the got post. Thank you giving a information

  10. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    Mobile App Development Company
    Mobile App Development Company
    Mobile app Development Companies

  11. Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'DESKTOP-1M92PA5', ip: '', 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(

    I m getting this error when i m trying to execute my script. The thing is the the contact to the appium server is not happening

    driver = new RemoteWebDriver(new URL(""),capabilities);
    //driver = new AndroidDriver(new URL(""), capabilities);
    System.out.println("driver in try method executed");

    I have tried with some other URL and no luck, could anyone help me resolve it ?

  12. Hi,

    how can i select grid view element in appium

  13. can u tell me how to run test case of android without using apk file and using of android source code in android studio

  14. Hi, Good job.. nice tutorials :) is there any real time example source code available? for practicing?
    Thanks, Ranjith

  15. Hello, Anuja!
    I am facing one problem in automating my application.
    I select a radio button first and then try to click OKAY, but what happens is only the radio button gets selected and OKAY button does not.
    Tried the code elsewhere, it runs perfectly.
    Also tried executing following two commands separately, with success.
    Test case gets passed, but actually it does not work.
    Please review the following two commands:

    @Test public void SelectGroupsAndStudents() {

    // Select Group
    driver.findElement(By.xpath("//android.widget.RadioButton[@text='Mahatma Fhule']")).click();

    driver.findElement(By.xpath("//android.widget.RadioButton[@text='Select Groups']")).click();

    Please note that the second command does not get executed.

    Any help will be appreciated!

  16. Can you please one sample project video.

  17. This comment has been removed by the author.

  18. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    For iPhone Online Training | Android Online Training

  19. Hi,
    Anuja my script is working fine bellow android version 7 but above 7.1 and 8 not working .My appium version is v1.7.2

  20. Any one please tell me how to test toast error messages. Please share code

    1. Hi, Check this out -

    2. Hey Anuja, i have configured appium successfully with android studio now i am facing an issue. I have app installed on my fone and i am trying to automate but its not working even package and activity is correct. Please help me in resolving this issue.

      Error: cannot start the '' application. Orginal error: Error executing abd.exe


  21. Thanks for the useful information of software testing courses, give more updates on software testing development, First time I visit your blog really nice, I bookmark your blog here after a daily visit. Learn software testing course in Chennai

  22. Hi Anuja,
    Ashish this side and i am new in appium. Actually I don't find UI automator bat file in my sdk folder. Can you help me please?

    1. It will be in bin folder under tools....

  23. Hey Anuja, i have configured appium successfully with android studio now i am facing an issue. I have app installed on my fone and i am trying to automate but its not working even package and activity is correct. Please help me in resolving this issue.

    Error: cannot start the '' application. Orginal error: Error executing abd.exe

  24. Hi there... nice blog. I'm specifically looking for Appium with iOS. Can you cover up simple steps for starters on iOS automation using appium?

  25. Nice and informative tutorial of appium.Thanks for sharing such nice article, keep on updating.

    Pega Training in Chennai
    Pega Training

  26. Hello Anuja, thanks for your effort and more grease to your elbow.
    Kindly see the error I am getting when rebuilding my project. Please assist. Thanks.

    build failed 1m 58s 827ms
    Starting Gradle Daemon 9s 596ms
    Run build 1m 32s 408ms
    Load build 2s 74ms
    Evaluate settings 2s 29ms
    Configure build 3s 928ms
    Calculate task graph 8s 77ms
    Run tasks 1m 18s 65ms
    InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored.
    Default interface methods are only supported starting with Android N (--min-api 24): java.util.Collection
    Default interface methods are only supported starting with Android N (--min-api 24): boolean
    Default interface methods are only supported starting with Android N (--min-api 24): java.util.Collection
    null Failed to process C:\Users\Eigenaar\AndroidStudioProjects\GoodEnergyApplication\app\libs\guava-25.0-jre.jar Error while dexing. Compilation failed to complete

  27. Love to read it,Waiting For More new Update and I Already Read your Recent Post its also nice blog Keep Updating Us..i am following in future also..,

    Best Software Training Institute in Chennai

    Best Online Training Institute in Chennai

  28. Hi Anuja,
    When I copy the apk like (//File f=new File("src/main/java")File fs= new File(f,"Naukri com Job Search_v10.7.apk");)
    inside the project and try to run a script its working as expected from both emulator and real device too.when I try to use to use
    cap.setCapabilities("appPacakge" "com.mobisystems.fileman")
    I am seeing the below issue
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(

  29. can you please suggest with correct information ?

  30. Excellent informative blog, Thanks for sharing.
    Wedding Photographer

  31. Nice post By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
    Digital Marketing Training

  32. Excellent and very cool idea and the subject at the top of magnificence and I am happy to this post..Interesting post! Thanks for writing it.What's wrong with this kind of post exactly? It follows your previous guideline for post length as well as clarity.
    datapower tutorial video