i am getting sessionnotcreatedexception in appium

0 votes

Jun 25, 2019 in Java by sachin
1,724 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, 2019 by ajs3033
• 7,300 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,620 points
676 views
+1 vote
0 answers

I am getting below error "The method readerFor(Class<Map>) is undefined for the type CsvMapper"

I Have requirement to convert csv to ...READ MORE

Dec 29, 2019 in Java by anonymous
• 160 points
2,759 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, 2019 in Java by Sirajul
• 59,230 points
1,924 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,220 points
2,571 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,910 points
11,615 views
+5 votes
4 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,450 points

edited Nov 7, 2018 by Omkar 79,567 views
+1 vote
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,500 points
7,966 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,500 points
16,991 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,500 points

edited Aug 4, 2023 by Khan Sarfaraz 4,390 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP