gpt4 book ai didi

android - 连接到驱动程序时出现 Appium 超时错误

转载 作者:太空狗 更新时间:2023-10-29 15:26:20 30 4
gpt4 key购买 nike

我正在使用 appium 在真实设备上自动化 native android 应用程序,但在 OpenQA.Selenium.WebDriverException 出现以下异常对 URL http://127.0.0.1:4723/wd/hub/session 的远程 WebDriver 服务器的 HTTP 请求60 秒后超时。

在检查 appium 服务器时,提到的日志如下:

信息:控制台日志级别:调试

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 app but did get Android package, will attempt to launch it on the device info: [debug] Creating new appium session 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 device for session info: [debug] Not checking whether app is present since we are assuming it's already on the device info: Retrieving 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 43007015586711f1 info: [debug] Setting device id to 43007015586711f1 info: [debug] Waiting for 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 - -

可能是什么问题

最佳答案

看来你没有在你的appium gui中配置android sdk路径..

在android设置下的appium gui中你必须设置android sdk路径

如果您从控制台运行 appium 那么您可能必须在您的环境变量中设置 ANDROID_HOME 并将其分配给您的环境路径

关于android - 连接到驱动程序时出现 Appium 超时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30843318/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com