【问题标题】:Error while running Appium from windows power shell从 windows powershell 运行 Appium 时出错
【发布时间】:2018-05-12 19:33:28
【问题描述】:

当我使用 windows power shell 运行 appium 时,出现如下错误:

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original err or: Could not find a connected Android device. (WARNING: The server did not provide any stacktrace information)

但 android studio 已连接到模拟器。可能出了什么问题?

我想在模拟器本身中运行应用程序,我不想在物理设备中运行

【问题讨论】:

    标签: selenium-webdriver android-emulator appium appium-android


    【解决方案1】:

    在你的 shell 中运行 adb devices 并确保你有非空列表并且模拟器没有被标记为“离线”。如果没有,请重建模拟器或尝试使用真实设备(只需检查开发人员选项+设备设置中启用的 USB 调试)

    【讨论】:

    • 我运行 adb devices 并显示一个模拟器。但是在使用 windows poweshell 运行 appium 时仍然会出现同样的错误
    • 1)npm appium-doctor -g 并运行 appium-doctor --android - 确保您获得了“全部通过”报告。 2) 显示您用于 Appium 会话创建和模拟器配置的功能 3) 尝试替代方案:GenyMotion 供个人使用或真实设备使用。可能你的工作室不是最新的并且构建了不兼容的模拟器
    • "appium-doctor --android" 命令在 windows power shell 中不起作用
    猜你喜欢
    • 2017-11-13
    • 2016-09-26
    • 2020-11-06
    • 1970-01-01
    • 2014-07-23
    • 2016-09-13
    • 1970-01-01
    • 2021-06-30
    • 1970-01-01
    相关资源
    最近更新 更多