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


に質問
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

解決する
対応するappPackageappActivityは見つかりませんでした.cmdで次のコマンドを実行できます.
adb shell dumpsys window w | find "/" | find "name="

次のような情報が得られます.
mSurface=Surface(name=com.tencent.mm/com.tencent.mm.plugin.account.ui.LoginPasswordUI)

そのうちappPackage