Encountering a timeout issue with Appium when establishing a connection to the

When using appium to automate a native Android application on a real device, there is an exception that occurs with the OpenQA.Selenium.WebDriverException saying: The HTTP request to the remote WebDriver server for URL timed out after 60 seconds.

Upon checking the Appium server logs, the following information was found:

info: Console LogLevel: debug

info: --> POST /wd/hub/session {"desiredCapabilities":{"device":"Android","platform":"Windows","deviceName":"Soti India (SM-P600)","platformName":"Android","platformVersion":"4.4","appPackage":"net.soti.hub","appActivity":"net.soti.securecontentlibrary.activities.SplashActivity"}} info: Client User-Agent string: undefined 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. : device, platform info: [debug] Didn't get the app but did get the Android package, will attempt to launch it on the device info: [debug] Creating a new Appium session with ID 0762641e-991f-4b4b-8953-e4b9135f22ef info: Starting Android Appium info: [debug] Getting Java version info: Java version is: 1.8.0_45 info: [debug] Checking whether adb is present warn: The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb. info: [debug] executing cmd: where adb info: [debug] Using adb from G:\adb\sdk\platform-tools\adb.exe

warn: No app capability, can't parse package/activity info: [debug] Set chromedriver binary as: C:\Appium\Appium\node_modules\appium\build\chromedriver\windows\chromedriver.exe info: [debug] Using fast reset? true info: [debug] Preparing the device for the session info:[debug] Not checking whether the app is present since we are assuming it's already on the device info: Retrieving the device info: [debug] Trying to find a connected Android device info: [debug] Getting connected devices... info: [debug] executing cmd: "G:\adb\sdk\platform-tools\adb.exe" devices info: [debug] 1 device(s) connected info: Found device ID 43007015586711f1 info: [debug] Setting the device id to 43007015586711f1 info: [debug] Waiting for the device to be ready and to respond to shell commands (timeout = 5) info: [debug] executing cmd: "G:\adb\sdk\platform-tools\adb.exe" -s 43007015586711f1 wait-for-device info: [debug] executing cmd: "G:\adb\sdk\platform-tools\adb.exe" -s 43007015586711f1 shell "echo 'ready'" info: [debug] Starting logcat capture error: Logcat capture failed: spawn ENOENT info: [debug] Stopping logcat capture info: <-- POST /wd/hub/session - - ms - -

What could be causing this issue?

Answer №1

It appears that the Android SDK path has not been configured in your Appium GUI.

You need to set the Android SDK path within the Android settings of your Appium GUI.

If you are running Appium from the console, you may need to set the ANDROID_HOME variable in your environment variables and assign it the path to your Android SDK.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How does the WebElement.clear() method affect text boxes?

Recently, I encountered an issue while working with Selenium. When I use the clear() function on a custom text box, it causes problems when trying to enter text later in the test. The text box is set up to check for JavaScript browserEvents, especially key ...

Encountering a problem when using the wait method in Selenium to loop through a list of participants

While troubleshooting the program, I noticed that all three participants are selected during debugging. However, when I run the program, an error is thrown for the second participant: java.lang.IllegalStateException: The Network Member can not be found T ...

Is it recommended to reset and start a fresh WebDriver session for each negative test in Selenium?

Each time I run a negative test, I make sure to close and reopen my driver. For instance, if the login test fails (meaning the login was successful), I restart the driver to begin fresh on the login page. Is this the recommended approach? I've consid ...

Counting the occurrences of a text in a webpage using Selenium WebDriver

Hey there! I'm trying to figure out how many times the text "VIM LIQUID MARATHI" appears on a specific page using selenium webdriver in Java. Can anyone assist me with this? In my main class, I've used the following code snippet to check if the ...

selenium.getEval() and driver using (JavascriptExecutor) encounter issues with SeleniumException while waiting for the evaluation of evaluate.js in Firefox versions 17 and 19, with webdriver v2.32

Encountered an exception while running JS code on firefox 17.0. The v2.32 changelog states support for 10esr, 17esr, 19, 20, and although the latest webdriver version is 2.35, I'm using v2.32 due to locator issues with certain tests. This setup works ...

Load different tab contents in a view pager without having to fetch them again

I am using a view pager within a tabLayout to display content sourced from JSON data. Each page on the view pager contains different content, and I'm trying to figure out how to extract each page's content just once. Is there a method to achieve ...

Learn the steps to dismiss a clickable popup in Selenium using Python for seamless scraping

My current project involves extracting data from clickable popups within a table on a website and storing it in a pandas dataframe using Selenium in python. The script works when the popups contain information. from selenium import webdriver from selenium. ...

How can one retrieve the 'alt' attribute text from an image tag on a webpage using the JSOUP library in an Android application?

Extracting the 'alt' text from an 'img' tag in Android after clicking a button is causing issues. The attempted code is not working as expected. Here is the snippet of the code that was used: Document doc = Jsoup.connect(url).get(); ...

Error: Unable to access the 'login' property of an undefined object

An error occurred: Uncaught TypeError: Cannot read property 'login' of undefined........... import Login from '../components/Login.jsx'; import { useDeps, composeWithTracker, composeAll } from 'mantra-core'; export const com ...

Encountering the Selenium Webdriver HTTP error within an Angular 4 project

ERROR Detected Issue found in: ./node_modules/selenium-webdriver/http/index.js Module not found: Error: Unable to locate 'http' in 'C:\Users\aprajita.singh\Documents\Angular 4\Auto-Trender-Project\node_modules ...

Tips for determining the security of a website using Selenium Java

I am working on automating a scenario where I need to ensure that the connection to a URL is secure without any SSL certificate issues. My testing environment includes Selenium WebDriver with Java, and I need to support IE and Chrome browsers. Unfortunatel ...

Using Python with Selenium to extract text while excluding the text of child nodes

Utilizing Python 3. Suggesting: <something> text <subelement> other </subelement> </something> In case I execute: elem = driver.find_element_by_xpath("//something") elem.text includes "text other" ...

Tips on fixing the "attribute error" issue with selenium webdriver in Python

Currently, I am utilizing Python 3.7 on a Windows 8 operating system. Selenium and chromedriver have both been successfully installed. I attempted to add the path for chromedriver: (browser=webdriver.Chrome("F:\\chromedriver.exe")) In addition ...

The issue with Python Selenium driver.get() function not functioning properly when used within a for loop

Here is some code that logs into a YouTube account and then visits a few YouTube videos. The problem arises in the following scenarios: If I use a direct link like this, it works fine driver.get('https://www.youtube.com/watch?v=FFDDN1C1MEQ') ...

Ways to change settings in properties file via plugin within Jenkins

Within my Selenium-TestNG-Maven automation framework, I have implemented a properties file to store the 'application-url'. The Jenkins job has been configured accordingly. Now, the challenge lies in accommodating the need to run this test suite o ...

Having trouble making an HTML5 video work on Android? It seems to play fine when clicking the play button,

It has come to my attention that html5 video on Android devices is unable to autoplay. Currently, the video only plays on the device when the user manually clicks on the play button. <video width="640px" height="360px" src="media/video/Moments_of_Every ...

The XPath functionality for the suggestion list is malfunctioning

Trying to confirm search functionality on using the auto-suggestion box. Below is the code I have implemented: public static void verifySearch() { try { WebElement searchBar = driver.findElement(By.id("search-box-input")); ...

How to locate the index of a specific item or multiple items within a JsonArray?

Can you help me determine which city is closest to Vancouver: Victoria, Washington or Texas? Once I find the shortest distance, how can I identify which destination address this value corresponds to? { "destination_addresses" : [ "Victoria, BC, C ...

How can one use C# and Selenium to send text to a hidden textarea with the attribute style="display: none;"?

I'm encountering an issue where I am unable to write in the textarea using the sendkeys function in Selenium. The specific textarea I am trying to target has an ID of 'txtSkillsTaught-Value' and is located after a script tag that seems to be ...

Selenium Python Guide: Interacting with a Span Accordion

I've been attempting to utilize Selenium Python to click on either the Element1 or Element2 button in view image description here using this code: element3 = driver.find_elements_by_id("span.jump_1").click element3 = driver.find_element_by ...