51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2224|回复: 5
打印 上一主题 下一主题

[IOS] appium 中有些方法不好用,求鉴定

[复制链接]
  • TA的每日心情
    无聊
    9 小时前
  • 签到天数: 509 天

    连续签到: 5 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2019-8-22 11:14:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    1 python driver.hide_keyboard()  运行于模拟器上,该方法不起作用,大家有用过么?
    2
    1. sleep(5)
    2. origin_el = self.driver.find_element_by_name('Buttons, Various uses of UIButton')
    3. destination_el = self.driver.find_element_by_name('Transitions, Shows UIViewAnimationTransitions')
    4. self.driver.scroll(origin_el, destination_el)
    复制代码
    使用时会报错,如下:
    1. Traceback (most recent call last):
    2. File "ios_uicatalog.py", line 46, in test_text_fields
    3. self.driver.scroll(origin_el, destination_el)
    4. File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/webdriver.py", line 169, in scroll
    5. action.press(origin_el).move_to(destination_el).release().perform()
    6. File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/common/touch_action.py", line 94, in perform
    7. self._driver.execute(Command.TOUCH_ACTION, params)
    8. File "/Library/Python/2.7/site-packages/selenium-2.42.1-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 173, in execute
    9. self.error_handler.check_response(response)
    10. File "build/bdist.macosx-10.9-intel/egg/appium/webdriver/errorhandler.py", line 29, in check_response
    11. raise wde
    12. WebDriverException: Message: u'An error occurred while executing user supplied JavaScript.'
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    9 小时前
  • 签到天数: 343 天

    连续签到: 5 天

    [LV.8]测试军长

    2#
    发表于 2019-8-23 09:22:47 | 只看该作者
    不知道 没搞过
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    8 小时前
  • 签到天数: 1496 天

    连续签到: 1 天

    [LV.10]测试总司令

    3#
    发表于 2019-8-23 10:37:57 | 只看该作者
    没试过
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    7 小时前
  • 签到天数: 973 天

    连续签到: 5 天

    [LV.10]测试总司令

    4#
    发表于 2019-8-23 11:38:52 | 只看该作者
    还没有用过
    回复

    使用道具 举报

  • TA的每日心情

    2020-2-2 12:43
  • 签到天数: 630 天

    连续签到: 1 天

    [LV.9]测试副司令

    5#
    发表于 2019-8-23 11:42:58 | 只看该作者
    昂,这个没怎么
    回复

    使用道具 举报

  • TA的每日心情
    慵懒
    10 小时前
  • 签到天数: 2790 天

    连续签到: 5 天

    [LV.Master]测试大本营

    6#
    发表于 2019-8-23 12:23:58 | 只看该作者
    真机有没有问题
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-10-18 18:23 , Processed in 0.065016 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表