还未发布过话题
  • info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Got new command 10 from instruments: au.getElement('2').setValueByType('18100002222')

    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: evaluating au.getElement('2').setValueByType('18100002222')
    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: No keyboard found. Tapping to make visible.
    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()

    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Still no keyboard found. Tapping again to make visible.

    看日志,提示了 no keyboard found,没有键盘,所以无法输入=。=

  • from selenium import webdriver
    from timeit import Timer
    
    def search_time(driver):
        search_btn = xxx #替换搜索button的xpath
        driver.find_element_by_xpath(search_btn).click()
        target_element = xxx #替换目标元素xpath
        driver.find_element_by_xpath(target_element)
    
    test = Timer('search_time(driver)','from selenium import webdriver; \
        from __main__ import search_time;\
        driver = webdriver.Firefox(); \
        driver.implicitly_wait(30);\
        driver.get(url)') #替换url值
    print test.timeit(1) #运行一次的时间
    print test.repeat(10,1)/10 #计算运行10次的平均时间
    

    =。=楼主要测搜索速度吗,可以用 jmeter 呀 (/ω╲)

  • try:
      em = driver.find_element_by_xpath(*path*)
      em.click()
    except:
      print 'failed'
      pass
    

    自己的一点思路,python 写的

  • 新手 python 学习 at 2015年06月19日

    你也可以看《python 基础教程》,《python 高级教程》,《python 参考手册》,《python cookbook》,依次进阶。
    最重要的,多写代码……

  • 如果 type 为 flash,就只能用 Autoit 生成操作 Windows 窗体的 exe 文件,然后通过 os.system('/path/xx.exe') 实现上传

  • 看报错,应该是你的一个元素不能定位到。

  • =.=你说的那个人不会是我吧……

  • appium 1.4.0 dmg 已经木有这个问题啦~(≧▽≦)/~

  • Appium IOS 真机测试 iphone at 2015年06月09日

    error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time
    info: [debug] Error: Log capture did not start in a reasonable amount of time

    iOS 遇到这个 error,先检查下 UDID 是不是大写了,大写要改成小写。