Appium 常見報錯以及解決方式

記錄一些個人在學習和使用 appium 中的常見報錯以及解決方式,持續記錄更新

Failure [INSTALL_FAILED_TEST_ONLY]

腳本安裝 apk 失敗原因是待測的 apk 是 debug 包,換成 release 包即可。或者無法區分的時候可以直接用 adb install 命令如果也安裝不上報 [INSTALL_FAILED_TEST_ONLY] 說明 apk 還是有問題。

[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

腳本啓動報這個錯誤原因是

'appActivity': '.ui.SplashActivity',

啓動的 activity 配置錯誤 或者 是 AndroidMainfest.xml.xml中,當前activity設置的屬性exported=false,表示當前activity無法被外部程序喚醒。需要修改此屬性重新打包出 apk

selenium.common.exceptions.NoSuchElementException: Message: An element could not be located on the page using the given search parameters.

在這個界面不能搜索到這個元素

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