Skip to content
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

iOS中的Webview连接不上 #79

Closed
lemonadam opened this issue Jul 7, 2016 · 6 comments
Closed

iOS中的Webview连接不上 #79

lemonadam opened this issue Jul 7, 2016 · 6 comments

Comments

@lemonadam
Copy link

lemonadam commented Jul 7, 2016

加入hosts

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1                            localhost

就好了

问题:用例中的 .webview() .native() 作用是什么,有这些方法的时候会使得脚本执行失败。这是封装好了什么方法么。请问如何找到对应方法关联的文件。

  • Macaca Version:
    1.0.35

  • Macaca Doctor:
    Node.js checklist:

    node env: /usr/local/bin/node
    node version: v4.4.7

    iOS checklist:

    Xcode is installed at: /Applications/Xcode.app/Contents/Developer
    Xcode Command Line Tools is ready, version: 2343.
    ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy

    Android checklist:

    JAVA version is 1.8.0_11
    JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
    ANDROID_HOME is set to /Users/lemon/work/sdk/android-sdk-macosx
    Platforms is set to /Users/lemon/work/sdk/android-sdk-macosx/platforms/android-23
    Android tools is set to /Users/lemon/work/sdk/android-sdk-macosx/tools/android

    Installed driver list:

    android: 1.0.13
    ios: 1.0.30

  • Platform:
    ios & android

@lemonadam lemonadam changed the title 用例中的 .webview() .native() 作用是什么,有这些方法的时候会使得脚本执行失败。这是封装好了什么方法么。请问如何找到对应方法关联的文件。 用例中的 .webview() .native() 作用是什么,有这些方法的时候会使得脚本执行失败。 Jul 7, 2016
@lemonadam
Copy link
Author

加入hosts
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
之后无障碍了

@xudafeng
Copy link
Member

xudafeng commented Jul 7, 2016

issue 关了,以后不要干掉ipv6的绑定

@xudafeng xudafeng closed this as completed Jul 7, 2016
@xudafeng xudafeng changed the title 用例中的 .webview() .native() 作用是什么,有这些方法的时候会使得脚本执行失败。 App中的webview连接不上 Dec 1, 2016
@xudafeng xudafeng changed the title App中的webview连接不上 iOS中的Webview连接不上 Feb 15, 2017
@yaniswang
Copy link
Collaborator

赞,我也碰到了!

感觉这个问题很容易出现,有没有办法在macaca的错误日志里把这个信息抛出来?

否则在没人告知的情况下,谁会想到是这个问题引起的。

@xudafeng
Copy link
Member

@yaniswang 哪里抛出呢?你瞅瞅代码哪里加合适啊?

@FredaZhang338
Copy link

@lemonadam 请问下这个要在哪里加呢

@macaca-bot
Copy link

This is the translated issue comment: @manningzhang


@lemonadam, where do you want to add this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants