Appium An unknown server-side error occurred while processing the command 怎么办?

skyshine · 2020年04月22日 · 最后由 skyshine 回复于 2020年04月24日 · 6091 次阅读


appium 在模拟器里能启动应用。
但却无法捕捉截图 是什么原因???

也没搜到什么有用的办法

谢谢

共收到 4 条回复 时间 点赞

截图没有问题,获取全部 source 出了问题,有可能是你当前 APP 动态刷新元素频繁 uiautomator 取全部 source 会经常报错,换 uiautomator2 驱动试下吧。

YueChen 回复

我用的逍遥,android7

{
"platformName": "Android",
"deviceName": "samsung SM-G9550",
"appPackage": "com.p1.mobile.aaa",
"appActivity": "com.p1.mobile.xxx",
"platformVersion": "7.1.2",
"automationName": "UiAutomator1"
}
在配置里我加了句"automationName": "UiAutomator1"
如果不加的话,就这样:
An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

"automationName": "UiAutomator2" 换

YueChen 回复

试过,一样的
Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册