Appium学习踩坑记

1.Appium appium 出现报错 could not connect to server are you sure it's running?

由于点错选择了customer server, 换一下automatic server,点击运行 就OK了!

 

2. 在oppo R15 操作系统:Android8.1.0手机上运行ui自动化用例时,报错:Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. (Original error: unknown error: Failed to clear data for com.android.chrome on device I7BAJ7IRSKSS9PU4: Error: java.lang.SecurityException: PID 26808 does not have permission android.permission.CLEAR_APP_USER_DATA to clear data of package com.android.chrome。

尝试后2种方法可解决:

1)增加配置项noReset=true

2)除了常见开发者选项中打开usb调试,同时还需要开启以下2项,然后重启手机即可



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

Appium学习踩坑记_第1张图片

出现这个问题是因为当时把 appActivity直接写成了activity,配置项不对所致

你可能感兴趣的:(appium)