• 正文不要出现公众号的二维码吧

  • Appium 客户端的 Inspector 最高只支持 8.4 的版本

    这个不对吧,能支持 9.2 啊。我觉得是你启动参数里要求要用 8.4,而你机器上没有,所以报错。

    你把你 iOS 启动的参数贴上来看看?

  • WebDriverAgent 简介 at 2016年05月16日

    #14 楼 @wenshi11019 你是说获取屏幕截图?可以啊。inspector 就是这么获取到屏幕截图的啊。

  • WebDriverAgent 简介 at 2016年05月16日

    #10 楼 @chenhengjie123 填坑方法:

    # 分步走 bootstrap.sh 里面的步骤
    $ carthage checkout
    *** Checking out KissXML at "5.0.3"
    *** Downloading ocmock.framework binary at "OCMock 3.2.2"
    *** Checking out peertalk at "5a0495a7b7d81b68e25ea1933c755b677cb040da"
    *** Checking out ocmock at "v3.2.2"
    *** Checking out RoutingHTTPServer at "v1.0.0"
    
    # 这步从原来的 carthage build ocmock --platform iOS 改为 carthage build --platform iOS
    $ carthage build --platform iOS
    *** xcodebuild output can be found in /var/folders/k4/f6dh0_b90yj3y3rws3mt7gxr0000gn/T/carthage-xcodebuild.6HnolN.log
    *** Skipped building KissXML due to the error:
    Dependency "KissXML" has no shared framework schemes for any of the platforms: iOS
    
    If you believe this to be an error, please file an issue with the maintainers at https://github.com/robbiehanson/KissXML/issues/new
    *** Skipped building RoutingHTTPServer due to the error:
    Dependency "RoutingHTTPServer" has no shared framework schemes for any of the platforms: iOS
    
    If you believe this to be an error, please file an issue with the maintainers at https://github.com/mattstevens/RoutingHTTPServer/issues/new
    *** Building scheme "OCMock iOS" in OCMock.xcodeproj
    *** Skipped building peertalk due to the error:
    Dependency "peertalk" has no shared framework schemes for any of the platforms: iOS
    
    If you believe this to be an error, please file an issue with the maintainers at https://github.com/rsms/peertalk/issues/new
    2016-05-16 14:57:40.978 xcodebuild[20598:270057] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XActivatePowerMode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-05-16 14:57:42.707 xcodebuild[20636:270151] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XActivatePowerMode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    
    # 继续用原有脚本 build inspector
    $ ./Scripts/bootstrap.sh -i
    Building Inspector
    Creating bundle directory...
    Building inspector.js...
    
    > web-driver-inspector@1.0.0 build /Users/hengjiechj/Personal/WebDriverAgent/Inspector
    > webpack --progress --colors
    
    Hash: 842186d690872be37d64
    Version: webpack 1.12.2
    Time: 2573ms
           Asset    Size  Chunks             Chunk Names
    inspector.js  706 kB       0  [emitted]  main
       [0] multi main 28 bytes {0} [built]
        + 182 hidden modules
    Done
    

    另外,分别找了台 iOS 7 和 iOS 9.3 的真机鉴定。基本结论如下:

    1. 在真机上使用的是 XCUITest 框架,不支持 iOS 9.0 以下的设备。
    2. 可以获取到任何界面的元素,包括桌面、系统弹窗:

    感觉有点像 Android 的 UIAutomator 。

  • WebDriverAgent 简介 at 2016年05月16日

    我踩坑了。。。

    $ ./Scripts/bootstrap.sh
    Fetching dependencies
    *** Checking out KissXML at "5.0.3"
    *** Checking out peertalk at "5a0495a7b7d81b68e25ea1933c755b677cb040da"
    *** Downloading ocmock.framework binary at "OCMock 3.2.2"
    *** Checking out ocmock at "v3.2.2"
    *** Checking out RoutingHTTPServer at "v1.0.0"
    *** xcodebuild output can be found in /var/folders/k4/f6dh0_b90yj3y3rws3mt7gxr0000gn/T/carthage-xcodebuild.b0AqO1.log
    Failed to read file or folder at /Users/hengjiechj/Personal/WebDriverAgent/ocmock/Cartfile: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cartfile” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/hengjiechj/Personal/WebDriverAgent/ocmock/Cartfile, NSUnderlyingError=0x7f8c51e119a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
    

    正在找解决方法。。。

  • Appium girls 北京活动总结 at 2016年05月15日

    赞~ 授人以鱼不如授人以渔啊~

  • python 使用 sum 求和 at 2016年05月14日
    1. 请使用 markdown ,不会使用的请查看回帖处右下角的排版说明
    2. 这种相当于学习笔记的帖子建议汇总后一起发。单独发的话每个帖子内容太少。
    1. 请使用 markdown ,不会使用的请查看回帖处右下角的排版说明
    2. 这种相当于学习笔记的帖子建议汇总后一起发。单独发的话每个帖子内容太少。
  • python 删除 list 中的元素 at 2016年05月14日

    请使用 markdown 。

  • #4 楼 @d00004_1 不错,确实挺简单,上手也快。

    底层用的是什么工具驱动呢?

  • 太简洁了,有些点没想明白。能简单说一下你的 input 是怎么封装来保证 username 和 password 分别是输入到对应的输入框空间不?

    另外,里面是怎么做断言的?

  • 以前的方案现在用不了了?

    没看懂这句:在 iOS7 之后,加入了 UITest。

  • 能不能用下 markdown ?现在的分段很不明显。

    另外,能否给大一点的图?图太小了,很多信息看不清。

  • #13 楼 @arvin 额,要问仔细点啊。现在你在做自动化测试的时候就发现很明显不一样,所以肯定有不一样的地方。

  • 帮转一个公众号文章上的留言:

    这个工具性能怎么样?如果要支持百万级的下单接口,需要多少负载机啊?

  • 没有二次开发的话功能比较少。

    我一开始也有试过,后面还是转 gatling 了。

  • Selenium WebDriver 详细介绍 at 2016年05月11日

    不错~

  • @anikikun 你上榜了

  • 你获取下元素的 isVisible 属性看看?

    可以的话找开发问下这个搜索框具体由什么控件组成,具体是怎么实现的。感觉你这个应该不是单纯的标准控件。

  • #7 楼 @kasi 翻的 ship

  • CrashMonkey4iOS 试用过程总结 at 2016年05月07日

    #51 楼 @hexueqin 第一个截图你检查下 app 绝对路径如何

    第二个不知道为啥你的 udid 里面会带有括号。正常应该不会带有括号的。

  • Selenium2 框架概述 at 2016年05月05日

    #9 楼 @carl 哈哈,只要能和 webdriver 的 http server 通讯,用啥工具都没问题。