测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
新手
qddegtya (Archer)
第 182 位会员 / 2013-11-11
16 篇帖子 • 309 条回帖
137 关注者
0 正在关注
154 收藏
{ '🌏 website': 'https://xiaoa.name' }
GitHub Public Repos
  • qddegtya.github.io 21

    💡 Colorful

  • a-docs 5

    :book: my favs

  • awesome-ng-tools 4

    🔧 awesome next-generation tools

  • ajs 4

    🪄 Just another javascript utility library used by other @qddegtya JS projects.

  • passport-ldap 4

    :key: LDAP authentication strategy for Passport and Node.js

  • qddegtya 3

    🎭 Use @atools/portrayal to intergrate with github workflow for auto-profile-updating.

  • llpage 2

    📜 Page operation model (in memory) with LRU & lifecycle strategy

  • astack 1

    🎉 The Production-Ready Open Source Framework For AI Applications.

  • isomorphic-channel 1

    📞 Isomorphic channel for Micro Frontends

  • w 1

    ✏️ Powerful Creative Workbench for Content Creator.

More on GitHub
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • Adb-For-Test 使用 adb 命令实现元素定位等功能,用来辅助 android 测试 at 2014年08月01日

    #7 楼 @monkey 但是,这跟实际的定位有本质出入,我们所说的定位是能够定位到并且拿到这个对象。

  • Adb-For-Test 使用 adb 命令实现元素定位等功能,用来辅助 android 测试 at 2014年08月01日

    #5 楼 @monkey 恩,是的~

  • Adb-For-Test 使用 adb 命令实现元素定位等功能,用来辅助 android 测试 at 2014年08月01日

    截图对比可以考虑一下性能问题,比如我要批量对比~

  • Adb-For-Test 使用 adb 命令实现元素定位等功能,用来辅助 android 测试 at 2014年08月01日

    #2 楼 @monkey 额,元素定位好像有点。。。这个定位就是返回坐标值?

  • Adb-For-Test 使用 adb 命令实现元素定位等功能,用来辅助 android 测试 at 2014年08月01日

    不错的项目,把 adb 常用的东西封装了一下,学习编程语言半年的时间内能够整理出来这个东西,充分说明楼主很务实。

  • 用了 AppiumDriver 后,WebDriverWait 中无法使用 AppiumDriver 特有的方法 at 2014年08月01日

    #5 楼 @kuroky

    拿 expected_conditions 中的 presence_of_element_located 举例来说
    webdriver.support 中的 expected_conditions 中定义的该可调用类中直接调用的就是核心的 find_element 方法
    而 AppiumDriver 定义的那些 Find 方法调用的正是这个核心方法,只不过他扩展了 By 类,所以,这边是可以通过访问 MobileBy 的相关属性来实现 smartwait 的

    class presence_of_all_elements_located(object):
        """ An expectation for checking that there is at least one element present
        on a web page.
        locator is used to find the element
        returns the list of WebElements once they are located
        """
        def __init__(self, locator):
            self.locator = locator
    
        def __call__(self, driver):
            return _find_elements(driver, self.locator)
    
    def _find_elements(driver, by):
        try :
            return driver.find_elements(*by)
        except WebDriverException as e:
            raise e
    
  • 用了 AppiumDriver 后,WebDriverWait 中无法使用 AppiumDriver 特有的方法 at 2014年08月01日

    #3 楼 @kuroky

    之前我在源码剖析帖里就有提及
    mobileby 类扩展了之前的 By 类。

    #!/usr/bin/env python
    
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    from selenium.webdriver.common.by import By
    
    
    class MobileBy(By):
        IOS_UIAUTOMATION = '-ios uiautomation'
        ANDROID_UIAUTOMATOR = '-android uiautomator'
        ACCESSIBILITY_ID = 'accessibility id'
    
  • [探究解答] getAttribute 方法为何不支持参数为 index 问题帖的探究 at 2014年08月01日

    #2 楼 @tom_ma xpath 本身就是遍历 xml 中相关信息的,这个时候的 index 已经是 Node 中的一个节点了,但是这还是不能说 index 就是这个 element 的属性,这个跟这个问题本身是完全不矛盾的。

  • 【已解决】getAttribute 方法为何不支持参数为 index 呢? at 2014年08月01日

    #5 楼 @lihuazhang
    #6 楼 @tom_ma

    我试图推断了一下:
    http://testerhome.com/topics/1208

  • [探究解答] getAttribute 方法为何不支持参数为 index 问题帖的探究 at 2014年08月01日

    @tom_ma

  • 【已解决】getAttribute 方法为何不支持参数为 index 呢? at 2014年07月30日

    你这个问题最好描述的清楚一下,我怎么感觉问题不是在 index 上,index 是一个动态值,你最后的报错是说找不到这个元素,不是说 attribute 错误

  • 在 2.3 的 htc 系统上运行的时候报错。帮忙看看什么原因 at 2014年07月30日

    个人建议:1. 你直接手动安装一下这个 APK,APK 损坏也会出现这样的情况。2. python 写 windows 的路径的时候保持一个好习惯,要么写一个 lambda 返回 abspath,要么你自行转义一下,像这种写法"F:/source/APK/fruit/fruitSwitch_sc.apk" 很危险。。。。

  • Appium 如何创建多个 session,并且可以随意切换?主要为了测两个 App, 但是 App 之间有互动 at 2014年07月29日

    #4 楼 @yangyajie_002 通信机制是?

  • Appium 如何创建多个 session,并且可以随意切换?主要为了测两个 App, 但是 App 之间有互动 at 2014年07月29日

    这个问题的核心要看,这两个 APP 之间是怎么互动?@monkey

  • 开源中国推出专用无 bug 内裤,TesterHome 专用内裤在哪儿? at 2014年07月29日

    #4 楼 @jelver 那是相当猥琐。。。。

  • 开源中国推出专用无 bug 内裤,TesterHome 专用内裤在哪儿? at 2014年07月29日

    #3 楼 @monkey 你做的出来,我相信一定有人要!

  • 伸手党第一帖,要个 setp by setp 的 appium for ios 教程 at 2014年07月28日

    PO 主无耻啊。。。

  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日

    #11 楼 @umbrella1978 我们欢迎猛插。。。@monkey

  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日

    #9 楼 @monkey 额。。。看错。。。PO 主呢。。。。

  • Appium-Python-Client 源码剖析 (一) driver 的元素查找方法 at 2014年07月28日

    #6 楼 @pt4847 那就跟本文题目违背了。。按照此需求,只能另开一帖~

  • 上一页
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 下一页
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

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