RobotFramework环境搭建

安装python2.7

升级pip的版本

python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/

安装pip install wxPython -i https://pypi.tuna.tsinghua.edu.cn/simple/

安装pip install RobotFramework -i https://pypi.tuna.tsinghua.edu.cn/simple/

安装pip install robotframework-ride -i https://pypi.tuna.tsinghua.edu.cn/simple/

在这里插入图片描述
是否创建桌面图标的意思点yes

pip install decorator -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-selenium2library -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-archivelibrary -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-SSHLibrary -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-ftplibrary -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-appiumlibrary -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install Appium-Python-Client==0.52 -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install robotframework-appiumlibrary -i https://mirrors.aliyun.com/pypi/simple/

python -m pip uninstall robotframework-appiumlibrary

这个是我的安装列表

在这里插入图片描述

4、安装三大浏览器驱动driver

1)、chromedriver 下载地址:
http://chromedriver.storage.googleapis.com/index.html

http://npm.taobao.org/mirrors/chromedriver/

2)、Firefox的驱动geckodriver 下载地址:
https://github.com/mozilla/geckodriver/releases/

3)、IE的驱动IEdriver 下载地址:
http://selenium-release.storage.googleapis.com/index.html

这个是我的浏览器对应的驱动
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

链接:htt删除我ps://p删除我an.ba删除我idu.com/删除我s/1v406w删除我Mpmy68l删除我LcnJ删除我e5YXzQ
提取码:ti删除我oo

测试 打开百度搜索
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述在这里插入图片描述
在这里插入图片描述脚本对应的gc是谷歌浏览器 ff火狐浏览器 ie是ie浏览器

在这里插入图片描述
PS:创建项目的时候不要使用中文名称,中文会报错,还有运行要设置robot,RobotFramework3.1以上版本不支持pybot
老版本支持pybot

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值