appiumlibrary用的是1.2.3没有Wait Until Page Contains Element 这个关键字。

appiumlibrary用的是1.2.3没有Wait Until Page Contains Element 这个关键字。
pip list 查看本地appiumblirary版本
对比了api上的版本和本地的版本,发现本地版本好久,api上是1.3.6
运行 pip install --upgrade robotframework-appiumlibrary。
安装后重启ride,此时已能识别 Wait Until Page Contains Element关键字。。重现跑脚本。
运行 pip install --upgrade robotframework-ride
更新ride成功后,重启ride再运行脚本。
又报keyword 'Capture Page Screenshot' could not be run on failure: WebDriverException: Message
更新appium, npm update -g appium
更新appium至1.5.3版本,各种重启,再运行脚本,脚本终于跑成功了。。。。
 
KEYWORD AppiumLibrary . Open Application  http://localhost:4723/wd/hub, platformName=Android, platformVersion=4.2.2, deviceName=0123456789ABCDEF, appPackage=com.UCMobile, appActivity=com.uc.browser.InnerUCMobile
 
Documentation:

Opens a new application to given Appium server.

Start / End / Elapsed:20160826 18:00:16.289 / 20160826 18:00:20.318 / 00:00:04.029
00:00:00.008KEYWORD AppiumLibrary . Capture Page Screenshot
 
Documentation:

Takes a screenshot of the current page and embeds it into the log.

Start / End / Elapsed:20160826 18:00:20.297 / 20160826 18:00:20.305 / 00:00:00.008
18:00:20.304FAILNo application is open 
18:00:18.292INFOCould not get IP address for host: localhost 
18:00:20.306WARNKeyword 'Capture Page Screenshot' could not be run on failure: No application is open 
18:00:20.318FAILURLError: <urlopen error [Errno 10061] >

转载于:https://www.cnblogs.com/chenkl/p/8340313.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值