alibaba / alibaba/macaca

三星真机运行弹出框确认 autoAccetAlerts:true 不起作用

Open
#590 3 comments 0 reactions 0 assignees View on GitHub
Android enhancement
Dominant language
No language data
Stars
3.2k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

* **Macaca Version**:
2.0.3

* **Macaca Doctor Logs**:
$ macaca doctor

************************************
* version 2.0.3 is outdate *
* run: npm i -g macaca-cli@2.0.4 *
************************************

More information: https://macacajs.github.io/changelog.html

macaca-doctor version: 2.0.1

Node.js checklist:

node env: /usr/local/bin/node
node version: v7.8.0

iOS checklist:

Xcode Command Line Tools is ready, version: 2347.
xcodebuild version: 8.3.2
iproxy[usbmuxd] is installed at: `/usr/local/bin/iproxy`
ios_webkit_debug_proxy is installed at: `/usr/local/bin/ios_webkit_debug_proxy`
carthage is installed, version: 0.23.0

Android checklist:

JAVA version is `1.8.0_60`
JAVA_HOME is set to `/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home`
ANDROID_HOME is set to `/Users/leon/Library/Android/sdk/`
Platforms is set to `/Users/leon/Library/Android/sdk/platforms/android-25`
ADB tool is set to `/Users/leon/Library/Android/sdk/platform-tools/adb`
gradle is installed, version: 3.4

Installed driver list:

android: 2.0.18
chrome: 1.0.5
electron: 1.1.6
ios: 2.0.11

* **Operate System**:
MacOS

* **Programming Language**:
JAVA

* macaca server log:
```
>> UIAutomatorWD http server ready
>> responseHandler.js:47:14 [master] pid:95506 Send HTTP Respone to Client[2017-06-06 19:11:33]: {"sessionId":"5b1174cb-431c-4098-a34c-87d903e252c3","status":0,"value":"{\"app\":\"/tmp/wd/task/com.tencent.wstt.gt.apk\",\"package\":\"com.tencent.wstt.gt\",\"platformName\":\"android\",\"isWaitActivity\":true,\"deviceName\":\"c108daee\",\"autoAcceptAlerts\":true}"}
```
使用java客户端进行调用,手机端弹出框后不再执行:
![img_20170606_191627r](https://cloud.githubusercontent.com/assets/988571/26826791/e996a686-4aec-11e7-8d57-f7f898aff893.jpg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the Java client on a Samsung Android device and inspect the UIAutomatorWD server output around autoAcceptAlerts and responseHandler.js. The fix is complete when the popup is automatically accepted and execution continues instead of stopping at the dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.