Appium Desktop-啓動異常Activity used to start app doesn't exist or cannot be launched!

Appium DesKtop 配置了各項參數後,啓動報錯

[MJSONWP] Encountered internal error running command: Error: Error occured while starting App.
 Original error: Activity used to start app doesn't exist or cannot be launched!
Make sure it exists and is a launchable activity

可能情況1:activity,查找錯誤

如何查找activity

1)確保手機和電腦已連接   adb devices


2)確保在你手機上,要測試的包啓動着

3)dos運行:adb shell dumpsys activity activities >C:\Users\xxx\Desktop\aa.txt

打開C:\Users\xxx\Desktop\aa.txt文件,查找你的關鍵字



4)輸入屬性對應的值後,點擊start session嘗試,查看是否正確



可能情況2:如果情況1解決不了,嘗試添加屬性 appwaitactivity

情況1中3),打開C:\Users\xxx\Desktop\aa.txt文件,查看關鍵字Running activities



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章