i am getting sessionnotcreatedexception in appium

0 votes

Jun 24 in Java by sachin

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,240 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
0 votes
1 answer

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

You can convert a String to int by using a function: int ...READ MORE

answered Apr 12, 2018 in Java by sharth
• 3,320 points
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
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,840 points
0 votes
1 answer

How can I convert an 'ArrayList<String> to 'String[]' in Java

List<String> list = new ArrayList<String>(); String[] array = ...READ MORE

answered Apr 20, 2018 in Java by Daisy
• 8,040 points
0 votes
1 answer

How can I Sort an ArrayList in Java

You can sort the ArrayList in 2 ...READ MORE

answered Apr 23, 2018 in Java by sharth
• 3,320 points
+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 6,167 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,050 points
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,050 points
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,050 points