一、首先需要安装pycharm和python
pycharm版本:选择免费社区版,先用社区版来做自动化吧!
python版本:3.8.5
这两个安装时注意勾选添加到环境变量path就行了,其他都是傻瓜式安装~
二、选择浏览器webdrive驱动,我选择Chrome
网站来自博主:smart_cat
Chrome浏览器驱动下载地址:https://chromedriver.storage.googleapis.com/index.html
Edge浏览器驱动下载地址:https://developer.microsoft.com/zh-cn/microsoft-edge/tools/webdriver) 或 https://msedgewebdriverstorage.z22.web.core.windows.net
Mozilla浏览器驱动下载地址:https://github.com/mozilla/geckodriver/tags
Opera浏览器驱动下载地址:https://github.com/operasoftware/operachromiumdriver/tags
Safari浏览器驱动下载地址:https://webkit.org/blog/6900/webdriver-support-in-safari-10
网站来自博主:
浏览器125版本及以后的
Chrome for Testing availability (googlechromelabs.github.io)
三、selenium、pytest、allure-pytest等pip包下载
1、pip命令
pip install pytest == 7.4.2 -i https://mirrors.aliyun.com/pypi/simple/
pip install selenium -i https://mirrors.aliyun.com/pypi/simple/
pip install pyYML -i https://mirrors.aliyun.com/pypi/simple/
pip install allure-pytest -i https://mirrors.aliyun.com/pypi/simple/
2、jdk 1.8版本(网上很多资源)
3、allure下载,配置环境变量。