WebDriverException:消息:处理命令时发生未知的服务器端错误,并且应用程序不存在

问题描述 投票:0回答:0

我试图通过连接我的真实设备来运行 Robot 文件,但出现此错误 在 Android 上打开应用程序 |失败 | WebDriverException:消息:处理命令时发生未知的服务器端错误。原始错误:'com.adndroid.calculator2' 上的应用程序没有 不存在或不可访问 堆栈跟踪: UnknownError:处理命令时发生未知的服务器端错误。原始错误:“com.adndroid.calculator2”中的应用程序不存在或不存在 无法访问 在 getResponseForW3CError (C:\Users\sp00933758\AppData\Local\Programs\Appium Server GUI 资源页 ode_modules ppium ode_modules ppium-base-driver\lib\pro tocol rrors.js:804:9) 在 asyncHandler (C:\Users\sp00933758\AppData\Local\Programs\Appium Server GUI 资源页 ode_modules ppium ode_modules ppium-base-driver\lib\protocol\prot ocol.js:380:37)

这是机器人文件 *** 设置 *** 图书馆 AppiumLibrary

*** 测试用例 *** 在 Android 上打开应用程序 打开应用程序 http://localhost:4723/wd/hub udid=R5CRA1Q86TK platformName=Android deviceName=GoHunt's S21 app=com.adndroid.calculator2 appActivity=com.adndroid.calculator2.Calculator

我什至尝试了 adb devces,我可以看到我的设备名称,不知道为什么应用程序打不开

我尝试连接到我的真实设备,但收到应用程序不存在或不可访问的错误消息 我期待司机会话建立,我可以打开应用程序。

我有 APPIUM GUI 服务器正在运行,我的设备是三星 Galaxy S21,我启用了开发人员选项并启用了 USB 调试。

android mobile robotframework appium-android
© www.soinside.com 2019 - 2024. All rights reserved.