i am getting sessionnotcreatedexception in appium

0 votes

Jun 24 in Java by sachin
57 views

1 answer to this question.

0 votes

Hi... it says here that Appium cannot find adb.exe in the specified folder. This happens when you do not have your Environment Variables configured. To set the default Path to your ADB.exe do:

  1. Open start menu or press the windows key-> type environment variables -> click Edit the system environment variables-> Environment Variables
  2. Under System Variables click on New...
  3. In the Variable name field give ANDROID_HOME 
  4. For Variable value put the Android sdk path. the default path is: C:\Users\<userName>\AppData\Local\Android\Sdk
  5. Now select Path variable and press edit-> new and then add all of the following paths one by one
    1. C:\Users\<userName>\AppData\Local\Android\Sdk\platform-tools\
    2. C:\Users\<userName>\AppData\Local\Android\Sdk\tools\
    3. C:\Users\<userName>\AppData\Local\Android\Sdk
    4. C:\Users\<userName>\AppData\Local\Android\Sdk\tools\bin
  6. Save the changes and try running teh program again
Make sure you've added java variables as well
answered Jun 27 by ajs3033
• 7,280 points

Related Questions In Java

0 votes
1 answer

I am learning looping statements. Can you tell me how 'for-each' works in Java?

While programming we often write code that ...READ MORE

answered Apr 17, 2018 in Java by Rishabh
• 3,540 points
65 views
0 votes
2 answers

How can I convert a String variable to a primitive int in Java

 Here are two ways illustrating this: Integer x ...READ MORE

answered Aug 20 in Java by Sirajul
• 37,480 points
188 views
0 votes
2 answers

How can I create File and write data in it using Java?

import java.io.BufferedWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; public class WriteFiles{ ...READ MORE

answered Jul 26, 2018 in Java by samarth295
• 2,190 points
115 views
0 votes
3 answers

How can I add new elements to an Array in Java

String[] source = new String[] { "a", ...READ MORE

answered Sep 19, 2018 in Java by Sushmita
• 6,880 points
153 views
0 votes
2 answers
+5 votes
3 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,380 points

edited Nov 6, 2018 by Omkar 10,247 views
0 votes
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,110 points
2,288 views
0 votes
1 answer

What are the differences between getText() and getAttribute() functions in Selenium WebDriver?

See, both are used to retrieve something ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,110 points
5,953 views
0 votes
1 answer

Selenium JARS(Java) missing from downloadable link

Nothing to worry about here. In the ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,110 points
700 views