一、安装ride;
1)安装python,https://www.python.org/downloads/release/python-2714/,自动安装pip
2)安装wxPython 不能用 pip install -U wxPython 安装,安装版本是: six-1.11.0 wxPython-4.0.0b2
直接下载手动安装:https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
wxPython2.8-win64-unicode-2.8.12.1-py27.exe
3)安装robotframework pip install robotframework
4)安装robotframework-ride pip install robotframework-ride
参考微信公众号2篇文章
http://mp.weixin.qq.com/s/E0GoHzyV6Hyza8eSWYN5Xw win32安装
https://mp.weixin.qq.com/s/OR0YvRXNok3szz5aHG1tcw win64安装
二、安装selenium2library
切换到
C:\Python27\Scripts
cmd
pip install robotframework-selenium2library
三、安装AutoItLibrary:
1.先装pywin32:
http://www.softpedia.com/get/Programming/Other-Programming-Files/PyWin32.shtml#download
下载64位2.7版本的
如:pywin32-220.win-amd64-py2.7
2.安装autoit https://www.autoitscript.com/site/autoit/downloads/ 注意选择64位
3.下载AutoItLibrary-1.1:
https://pypi.python.org/pypi/AutoItLibrary/1.1.post1 解压改名为:AutoItLibrary-1.1
进入:C:\Python27\Lib\site-packages\AutoItLibrary-1.1 中运行 python setup.py install
重新打开ride.py查看F5,有autoitlibrary
四、安装webdriver
seleniumlibrary安装后需要安装IE或者chrome等浏览器的webdriver:下载exe放在C:\Python27\Script
1.chromedriver:
http://blog.csdn.net/huilan_same/article/details/51896672
selenium之 chromedriver与chrome版本映射表(更新至v2.32)
如:chrome59版本与driver2.32版本匹配,下载59版本:
https://pan.baidu.com/s/1i5n8Oap?errno=0&errmsg=Auth Login Sucess&&bduss=&ssnerror=0
关闭chrome自动更新:服务-停止google自动更新服务
下载chromedriver.exe win32也行
http://npm.taobao.org/mirrors/chromedriver/2.32/
火狐不需要装driverserver;脚本中浏览器参数不填写时默认为火狐,火狐浏览器版本支持火狐27以下
使用IE前将IE选项>安全>启用保护模式全部勾选掉(四项里面的都勾掉) IE版本支持IE6-10 IE11需要更改注册表信息,方法参考:http://code.google.com/p/selenium/wiki/InternetExplorerDriver
chrome使用时注意网址要带上http://,比如百度必须填写http://www.baidu.com chrome版本支持chrome33-35
RFS框架安装步骤
最新推荐文章于 2019-07-14 14:48:36 发布