macaca icon indicating copy to clipboard operation
macaca copied to clipboard

ios safari 弹出对话框时程序被阻塞

Open gao2q opened this issue 7 years ago • 3 comments

  • Macaca Version: 2.0.13

  • Macaca Doctor Logs:

    macaca-doctor version: 2.0.5

    Node.js checklist:

    node env: /usr/local/bin/node node version: v8.9.3

    iOS checklist:

    Xcode Command Line Tools is ready, version: 2349. xcodebuild version: 9.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.29.0

    Android checklist:

    JAVA version is 1.8.0_101 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home ANDROID_HOME is set to /Users/gaobester/Library/Android/sdk Platforms is set to /Users/gaobester/Library/Android/sdk/platforms/android-27 ADB tool is set to /Users/gaobester/Library/Android/sdk/platform-tools/adb gradle is installed, version: 4.5

    Installed driver list:

    android: 2.0.46 ios: 2.0.30

  • Operate System: macos 10.13.4

  • Programming Language: Java

测试ios的safari浏览器。客户端使用的是java语言,调用macaca-java API。

当html中弹出alert弹窗后。java程序被阻塞,不能再往下执行。 只有在ios的safari上手动点击alert弹窗,弹窗消失后java程序才继续往下执行。

因此,当html有弹窗时,java程序就被阻塞住了。 请问如何解决这个问题?

gao2q avatar May 29 '18 06:05 gao2q

This is the translated issue:


Program is blocked when ios safari pops up dialog

  • Macaca Version:    2.0.13
  • Macaca Doctor Logs:

  Macaca-doctor version: 2.0.5

  Node.js checklist:

  Node env: /usr/local/bin/node   Node version: v8.9.3

  iOS checklist:

  Xcode Command Line Tools is ready, version: 2349.   Xcodebuild version: 9.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.29.0

  Android checklist:

  JAVA version is 1.8.0_101   JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home   ANDROID_HOME is set to /Users/gaobester/Library/Android/sdk   Platforms is set to /Users/gaobester/Library/Android/sdk/platforms/android-27   ADB tool is set to /Users/gaobester/Library/Android/sdk/platform-tools/adb   Gradle is installed, version: 4.5

  Installed driver list:

  Android: 2.0.46   Ios: 2.0.30

  • Operate System:  Macos 10.13.4

  • Programming Language:  Java

Test ios safari browser. The client uses the java language and calls the macaca-java API.

When the pop-up pop-up window pops up in the html. The java program is blocked and cannot be executed further. Only manually click on the pop-up pop-up on the ios safari, the pop-up window disappears after the java program continues to execute.

Therefore, when the html has a popup window, the java program is blocked. How to solve this problem?

macaca-bot avatar May 29 '18 06:05 macaca-bot

我已经设置autoAcceptAlerts=true 程序仍然被阻塞。

gao2q avatar May 29 '18 06:05 gao2q

This is the translated issue comment: @gao2q


I have set autoAcceptAlerts=true The program is still blocked.

macaca-bot avatar May 29 '18 06:05 macaca-bot