Original error: The desired capabilities must include either an app, appPackage or browserName

xiaoxiao2021-07-27  87

问题

用Appium测试报错

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: The desired capabilities must include either an app, appPackage or browserName

解决

没有找对对应的appPackage和appActivity。 可以通过cmd运行下面命令:

adb shell dumpsys window w | find "/" | find "name="

就会得到类似下面的信息:

mSurface=Surface(name=com.tencent.mm/com.tencent.mm.plugin.account.ui.LoginPasswo
转载请注明原文地址: https://www.6miu.com/read-4823353.html

最新回复(0)