Open quxiaozha opened 6 years ago
This is the translated issue:
Node.js checklist:
Node env: D:\nodejs\node.exe Node version: v8.9.3
Android checklist:
JAVA version is 1.8
JAVA_HOME is set to D:\Program Files\Java\jdk1.8.0_151
ANDROID_HOME is set to E:\cjsc\android-sdk-windows
Platforms is set to E:\cjsc\android-sdk-windows\platforms\android-28
ADB tool is set to E:\cjsc\android-sdk-windows\platform-tools\adb.exe
GRADLE_HOME is set to D:\gradle-4.4
Installed driver list:
Android: 2.0.48
When using MacacaClient.source();, a + element on the app will be clicked. After discovery, try sending it with http://127.0.0.1:3456/wd/hub/session/f680c760-9a83-4992-8f81-781a67962e8c/source Request a test, the + element of the interface will be clicked once per request.
经排查,发现在执行/source之前,先调用了/accept_alert,这里边判断使用的是:List
This is the translated issue comment: @quxiaozha
After troubleshooting, it was found that /accept_alert was called before executing /source. Here, the judgment is: List
Macaca Version: 2.1.3
Macaca Doctor Logs: macaca-doctor version: 2.0.14
Node.js checklist:
node env: D:\nodejs\node.exe node version: v8.9.3
Android checklist:
JAVA version is
1.8
JAVA_HOME is set toD:\Program Files\Java\jdk1.8.0_151
ANDROID_HOME is set toE:\cjsc\android-sdk-windows
Platforms is set toE:\cjsc\android-sdk-windows\platforms\android-28
ADB tool is set toE:\cjsc\android-sdk-windows\platform-tools\adb.exe
GRADLE_HOME is set toD:\gradle-4.4
Installed driver list:
android: 2.0.48
Operate System: win10 64 jdk1.8
Programming Language: java
使用MacacaClient.source();时,app上一个+元素会被点击,发现后尝试用http://127.0.0.1:3456/wd/hub/session/f680c760-9a83-4992-8f81-781a67962e8c/source发送请求测试,每请求一次,界面的+元素就会被点击一次。