-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
小米mix2 android8.0 permissionPatterns 发现只可以自动允许android-unlock 其它两个的提示不可以 #31
Comments
我down下 这个样例, 也加上该句
还是用以上真机跑 先去设置 应用里 卸载干净 以上三个 弹窗文本我也看了 都是 继续安装 拒绝 |
`session.js:47:10 [master] pid:19460 Creating session, sessionId: dbad83dd-829f-4e93-8e76-9797557eb871. at ChildProcess.exithandler (child_process.js:275:12) 从遇到的错误日志来看,是权限检查checking permissionPatterns: ["继续安装","下一步","好","允许","确定","我知道"] |
这是win10 的 日志内容 稍微有点提示的不太一样. |
日志里提到 macaca 包签名不一致,应该是在另一台 PC 跑过。建议把旧包卸载了再重新安装一次。 |
这个就是手机里清理过4个安装之后的日志了,所以我也奇怪已经卸载了为什么是提示这种。 |
小米mix2 真机 android8.0
环境是IDEA wd.java 2.0.20
脚本里写了
该句
public void setUp() throws Exception {
Logger logger = Logger.getLogger(getClass());
JSONObject porps = new JSONObject();
porps.put("autoAcceptAlerts", true);
porps.put("javascriptEnabled", true);
模拟器可通过,小米mix2 发现会按顺序提示安装
1UiAutoMator sample
2com.macaca.android.testing.test
3 android-unlock
经过反复测试,发现 头两个 1 和 2 会报错 我等到延时提示的最后3s 点击 继续安装 到第3个android-unlock 可以发现 继续安装 并点掉 。进入启动app后,遇到提示读取联系人权限 也可以 发现 “允许”并点掉。
不知道 为什么头两个1UiAutoMator sample
2com.macaca.android.testing.test 不可以发现并自动点掉。
以下日志,遇到第1个UiAutoMator sample 就报错了, 然后我最后3s 手动点击的,再往后又手动点了
2com.macaca.android.testing.test 第3个 android-unlock是程序自己发现并点掉的,然后启动app 自动点掉了 “允许”
`>> responseHandler.js:11:12 [master] pid:19460 Recieve HTTP Request from Client[2018-03-13 13:10:41]: method: POST url: /wd/hub/session, jsonBody: {"desiredCapabilities":{"package":"com.sinacp.ggaicai","activity":"com.aicai.pluginhost.activity.MainActivity","permissionPatterns":"[\"继续安装\",\"下一步\",\"好\",\"允许\",\"确定\",\"我知道\"]","javascriptEnabled":true,"platformName":"Android","version":"","autoAcceptAlerts":true}}
cmd@TR:~$ macaca doctor
macaca-doctor version: 2.0.7
Node.js checklist:
node env: /opt/nodejs/bin/node
node version: v8.9.4
Android checklist:
JAVA version is
1.8
JAVA_HOME is set to
/usr/lib/jvm/java-8-oracle
ANDROID_HOME is set to
/opt/android-sdk-linux
Platforms is set to
/opt/android-sdk-linux/platforms/android-26
ADB tool is set to
/opt/android-sdk-linux/platform-tools/adb
gradle is installed, version: 3.5
Installed driver list:
android: 2.0.46
chrome: 1.0.7
electron: 1.1.19
The text was updated successfully, but these errors were encountered: