天天看點

Robotframework(二)環境搭建1、安裝Python32、安裝需要用到的包3、檢視編輯器4、下載下傳浏覽器驅動

目錄位址:https://blog.csdn.net/qupan1993/article/details/87513905

1、安裝Python3

進入官網下載下傳安裝包https://www.python.org/downloads/,自己選擇下載下傳平台即可

Robotframework(二)環境搭建1、安裝Python32、安裝需要用到的包3、檢視編輯器4、下載下傳浏覽器驅動

按照正常軟體按照流程安裝即可,

成功之後打開cmd指令行,輸入python出現下面即表示安裝成功

Robotframework(二)環境搭建1、安裝Python32、安裝需要用到的包3、檢視編輯器4、下載下傳浏覽器驅動

如果提示Python不是内部指令的話,将Python3的安裝目錄添加到系統變量之中,添加方法自行百度!

2、安裝需要用到的包

打開cmd執行下面指令安裝需要用的包:

python -m pip install robotframework

python -m pip install robotframework-ride

python -m pip install robotframework-selenium2library

python -m pip install robotframework-requests

python -m pip install robotframework-appiumlibrary

3、檢視編輯器

打開cmd輸入ride.py,出現下面工具,表示安裝成功

Robotframework(二)環境搭建1、安裝Python32、安裝需要用到的包3、檢視編輯器4、下載下傳浏覽器驅動

4、下載下傳浏覽器驅動

下載下傳位址:

火狐: https://github.com/mozilla/geckodriver/releases

谷歌:http://chromedriver.storage.googleapis.com/index.html

IE: http://selenium-release.storage.googleapis.com/index.html

Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

Opera:https://github.com/operasoftware/operachromiumdriver/releases

PhantomJS:http://phantomjs.org/

谷歌驅動對照表、轉載自YOYO測試:https://blog.csdn.net/yoyocat915/article/details/80580066

将下載下傳好的驅動放到Python的安裝路徑即可

Robotframework(二)環境搭建1、安裝Python32、安裝需要用到的包3、檢視編輯器4、下載下傳浏覽器驅動