Appium遇到的问题


1.An unknown server-side error occurred while processing the command. Original error: activity and pkg are required to start an application


2.An unknown server-side error occurred while processing the command. Original error:
Cannot start the 'com.baidu.searchbox' application.
Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting.
Original error: Cannot start the 'com.baidu.searchbox' application.
Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting.
Original error: Activity name '.com.baidu.searchbox/.MainActivity' used to start the app doesn't exist or cannot be launched!
Make sure it exists and is a launchable activity

解决方法:https://testerhome.com/topics/16454?locale=zh-CN
通过 adb shell monkey -p com.baidu.searchbox -v -v -v 1 找到你想要app的启动activity



{
"platformName": "Android",
"deviceName": "810EBM32U8GC",
"platformVersion": "5.1",
"app": "com.baidu.searchbox",
"appActivity": "com.baidu.searchbox.SplashActivity"
}

{
"deviceName": "892QAETNVKYFN",
"platformName": "Android",
"platformVersion": "8.1.0",
"appPackage": "com.qihoo.srouter.n300",
"appActivity": "com.qihoo.srouter.n300/com.ifenglian.superapp.ui.firewall.SAMainActivity "
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM