测试之家
  • Topics
  • QA
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • Sign Up
  • Sign In
会员
mads (恺)
第 2265 位Users / 2015-01-06
mimi @ 杭州
59 篇帖子 • 1005 条回帖
195 关注者
39 正在关注
15 收藏
开源力量
打赏支持
GitHub Public Repos
  • xn_android_special_test 0

  • webdriver-frame 0

    webdriver frame

More on GitHub
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #16 楼 @weamylady 你是命令行端还是哪个

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #17 楼 @mads 你是命令行端还是哪个

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #16 楼 @weamylady 你好潇洒啊,打球。。。这小日子过的

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #14 楼 @weamylady 能给个下载地址么
    你真的是这个问题,一模一样的?

  • Hybrid App 中,WebView 界面滑动后控件坐标错误! at June 03, 2015

    #5 楼 @weamylady 能把脚本发来看看么

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #11 楼 @chenhengjie123 是的,我把切换的注销掉还是老样子。。。停着不动

    #coding=utf-8
    import os
    import sys
    #from PIL import Image
    import unittest
    from appium import webdriver
    from time import sleep
    from appium.webdriver.common.touch_action import TouchAction
    
    # Returns abs path relative to this file and not cwd
    PATH = lambda p: os.path.abspath(
        os.path.join(os.path.dirname(__file__), p)
    )
    
    desired_caps = {}
    #desired_caps['automationName'] = 'Selendroid'
    desired_caps['platformName'] = 'Android'
    desired_caps['platformVersion'] = '4.4'
    desired_caps['deviceName'] = '192.168.56.101:5555'
    desired_caps['appPackage'] = 'com.jiudao.ccare'
    desired_caps['appActivity'] = '.MainActivity'
    desired_caps['autoWebview'] = 'true'
    desired_caps["unicodeKeyboard"] = "True"
    desired_caps["resetKeyboard"] = "True"
    desired_caps['autoWebview'] = 'true'
    dr = webdriver.Remote('http://192.168.10.65:4723/wd/hub', desired_caps)
    
    dr.implicitly_wait(10)
    #a=dr.contexts
    #print (a)
    #time.sleep(3)
    #dr.switch_to.context("WEBVIEW_com.jiudao.ccare")
    username=dr.find_element_by_id("username")
    username.clear()
    username.send_keys("admin@WOT")
    password=dr.find_element_by_id("username")
    password.clear()
    password.send_keys("1")
    dr.close_app()
    dr.quit()
    
  • Hybrid App 中,WebView 界面滑动后控件坐标错误! at June 03, 2015

    #3 楼 @weamylady 你好,你的 hybrid app 实现了么?求 qq,我想咨询咨询

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 03, 2015

    #6 楼 @chenhengjie123

    同样的脚本我又运行了,今天刚刚重装好电脑。。。
    同样的脚本,模拟器是 4.4 三星 S4,然后运行了出现下图

    还有我想问下设置 --chromedriver-port 的参数,启动的时候 appium --chromedriver-port <端口号>这样么?

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 02, 2015

    #7 楼 @yuwuhen333 看到你代码了

  • [已解决] 运行 hybrid 应用,切换到 webview 格式后报错 at June 02, 2015

    #1 楼 @cy_suncheng info: [debug] No old chromedrivers seemed to exist?这句话?请问你 qq 多少,qq 能不能细聊

  • 哥今天郁闷极了。 at June 02, 2015

    走

  • appium 1.4+python 2.7.9 参考 android_contacts.py 无法输入中文,求举例 at June 02, 2015

    #19 楼 @yuwuhen333 qq 多少来着?

  • appium 1.4+python 2.7.9 参考 android_contacts.py 无法输入中文,求举例 at June 02, 2015

    你 webview 搞定没

  • 新手学 appium-GUI 端搞起来 at June 02, 2015

    #1 楼 @tlbin 第三方必须可以,,,,不然你 appium 搞毛线。。

  • 新手学 appium-GUI 端搞起来 at June 02, 2015

    #1 楼 @tlbin 什么叫非系统中。。。

  • 新手学 appium-python unittest 框架 at June 02, 2015

    #3 楼 @lihuazhang 这周周末补充

  • 安卓原生开发和 html 开发,自动化测试的问题 at June 01, 2015

    #11 楼 @sky629 79523822

  • 新手学 appium-python unittest 框架 at June 01, 2015

    #1 楼 @sincool 知识需要自己挖掘~

  • 安卓原生开发和 html 开发,自动化测试的问题 at June 01, 2015

    #11 楼 @sky629 我又没搞定

  • 命令行启动 AppiumForWindows at June 01, 2015

    老王加个好友

  • 关于 appium 命令行端安装的稳定版 nodejs 推荐 at May 29, 2015

    #3 楼 @chenhengjie123 - -!好吧,下次注意,主要难得装起来。如果再卸掉,可能又装不起来了。我搞这个东西,搞了蛮久的。仅仅就是推荐一个 nodejs 的版本

  • 关于 appium 命令行端安装的稳定版 nodejs 推荐 at May 29, 2015

    #1 楼 @chenhengjie123 ok 了,就是官网。。

  • 新手学 appium-HTMLTestRunner 测试报告的导出 demo at May 29, 2015

    #12 楼 @xdlhy 你这是转码,reload(sys) 在 3.x 会报错的。只能 2.7 或者其他 2.x 版本

  • 【已解决】appium 问题-运行 android native 拨号应用测试脚本报错 at May 29, 2015

    #18 楼 @yuwuhen333 成功了不就行了,成功就不用跟我汇报了。。

  • 新手学 appium-HTMLTestRunner 测试报告的导出 demo at May 29, 2015

    #10 楼 @xdlhy
    http://m.blog.csdn.net/blog/yunbin_7/40083983
    这个帖子的这个代码在 python3.x 里不能运行成功的。因为我是从 2.7 转到 3.x 的,所以尝试过,会报错。所以你这个网址的解决方案估计只能是 2.x 版本的 python

    import sys
    reload(sys)
    sys.setdefaultencoding('utf-8')
    
  • Prev
  • 1
  • 2
  • 3
  • …
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • Next
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

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