测试之家
  • Topics
  • QA
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • Sign Up
  • Sign In
管理员
chenhengjie123 (陈恒捷)
第 605 位Users / 2014-03-16
字节跳动 @ 广州
157 篇帖子 • 5476 条回帖
1424 关注者
17 正在关注
100 收藏
人与人的差距取决于工作、睡觉之外的8个小时!
打赏支持
GitHub Public Repos
  • vue-testcase-minder-ed... 100

    基于百度脑图的用例编辑器组件,支持记录测试结果

  • gs-rest-service 5

    Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring.

  • JavaSpringMvcBlog 5

  • ffmpeg-go 1

    golang binding for ffmpeg

  • ws-qvh 0

    Server for streaming the screen of iOS devices over WebSocket.

  • goav 0

    Golang bindings for FFmpeg (This repository is no longer maintained)

  • gmf 0

    Go Media Framework

  • quicktime_video_hack 0

    Record iOS device audio and video

  • ws-scrcpy 0

    Web client prototype for scrcpy.

  • ChuanhuChatGPT 0

    GUI for ChatGPT API

More on GitHub
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • appium 的 Python 版中,使用 WebDriverWait。。。until。。。做元素等待,报参数个数错误 at May 18, 2016

    #3 楼 @jh901011 忽略 1 楼,请看 2 楼的

  • 提供一个自动获取安卓 desired_caps 信息的方法和简化 SDK 方法 at May 18, 2016

    #7 楼 @gaofating 再次强调,没有大神。。。

  • appium 的 Python 版中,使用 WebDriverWait。。。until。。。做元素等待,报参数个数错误 at May 18, 2016

    #1 楼 @chenhengjie123 我错了,应该不是这个问题。不知道你的 presence_of_element_located 是怎么 import 的?能不能把完整的代码贴上来?

    我直接用官网的示例是没问题的:

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    
    
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    
    driver = webdriver.Firefox()
    driver.get("http://testerhome.com")
    try:
        element = WebDriverWait(driver, 10).until(
            EC.presence_of_element_located((By.ID, "navbar-header"))
        )
    finally:
        driver.quit()
    

    PS:麻烦正文用 markdown 排版。。。

  • appium 的 Python 版中,使用 WebDriverWait。。。until。。。做元素等待,报参数个数错误 at May 18, 2016

    示例里面的 wait 是来自 selenium.webdriver.support.ui 的,和你的不一样。

    from selenium.webdriver.support.ui import WebDriverWait
    
  • [烧脑巨作,不容错过] 像 hacker 一样思考 at May 18, 2016

    涨知识了

  • Appium for mac (android 版) 从 0 到 0.8 过程记录 --appium girls 北京活动个人总结 at May 18, 2016

    赞~有收获、有总结、有分享,看到 Appium Girls 活动能帮到众多妹子真是太好啦。

  • DUBBO,RMI 接口测试中,关于真实对象和构造的对象比较问题 at May 18, 2016

    可以试试 测试开发之路 ---- 可读性,可维护性,可扩展性 里提到的责任链模式,自己实现一个。

  • 为什么 appium inspector 不能打开手机呢,一直提示无法连接服务器 at May 18, 2016

    把 Appium server 完整的 log 输出贴上来。不要截图,直接复制粘贴文字。

    我感觉你截图里面的 log 并不是包含出错信息的 log 。

  • WebDriverAgent 简介 at May 18, 2016

    #20 楼 @wenshi11019 给个具体界面截图吧?

  • 接口测试提前介入和自动化测试 at May 17, 2016

    额,想问下上下文是啥?

  • WebDriverAgent 简介 at May 17, 2016

    #17 楼 @wenshi11019 你说的是自绘控件吧?这个没试过。你有确定用了这类控件的 app 不?我可以装上试试

  • KIF 在真机上进行截图踩坑小记 at May 17, 2016

    #5 楼 @heminwon 可以的

  • 提供一个自动获取安卓 desired_caps 信息的方法和简化 SDK 方法 at May 17, 2016

    通过了。

    PS:package name 和 app-activity 的获取方法你可以看看 appium 的实现。当你没给这两个参数时,它会通过解析 apk 文件自动获取这两个参数。

  • 参加 Appium girls 北京活动总结 at May 17, 2016

    #4 楼 @fengyiwen 相关教程可以看这里:https://www.gitbook.com/book/anikikun/appium-girls-tutorial/details

  • 提供一个自动获取安卓 desired_caps 信息的方法和简化 SDK 方法 at May 17, 2016

    分享是好的。但麻烦使用 markdown 。

    不会用的话可以看 排版说明 。好文章应该配上好的排版~

  • 关于 Inspector 无法启动问题的处理思路 at May 17, 2016

    #5 楼 @wyb199026 其实那是个输入框,你可以把 9.3 输进去的。

  • 静态代码扫描 (一)——PMD 自定义规则入门 at May 17, 2016

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

  • 关于 Inspector 无法启动问题的处理思路 at May 17, 2016

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

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

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

  • WebDriverAgent 简介 at May 16, 2016

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

  • WebDriverAgent 简介 at May 16, 2016

    #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 May 16, 2016

    我踩坑了。。。

    $ ./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 May 15, 2016

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

  • python 使用 sum 求和 at May 14, 2016
    1. 请使用 markdown ,不会使用的请查看回帖处右下角的排版说明
    2. 这种相当于学习笔记的帖子建议汇总后一起发。单独发的话每个帖子内容太少。
  • Prev
  • 1
  • 2
  • 3
  • …
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • …
  • 205
  • 206
  • 207
  • Next
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

    ©testerhome.com 测试之家   渝ICP备2022001292号
      渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司