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.304 FAIL No application is open  
18:00:18.292 INFO Could not get IP address for host: localhost  
18:00:20.306 WARN Keyword 'Capture Page Screenshot' could not be run on failure: No application is open  
18:00:20.318 FAIL URLError: <urlopen error [Errno 10061] >
posted @ 2018-01-24 10:20  cling_chen  阅读(1263)  评论(0)    收藏  举报