Files
WebAutoTest/README.md
CNWei 92d06dd9cf init: 初始化项目
- 创建了基本的项目结构
- 添加了 .gitignore 文件
- 配置了基本的开发环境
- 添加清华镜像源
- 设置了基础的文件夹和文件(如 commons, utils, POM, pytest.ini)

项目说明:
- [项目名称]:Web自动化测试
- [项目描述]:基于pytest,selenium的自动化测试工具
- [开发环境]:Python
2025-04-14 23:05:39 +08:00

23 lines
481 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Selenium
1配置webdriver的下载路径(环境变量)
```text
# windows
SE_CACHE_PATH
webdriver的缓存路径如 D:/WebDriver
```
调用浏览器驱动的接口
接口文档https://www.w3.org/TR/webdriver/#interface
> Selenium对浏览器所有的控制
> - 通过接口调用实现(大部分)
> - 通过js实现小部分
驱动地址:
https://registry.npmmirror.com/binary.html
pytest-xlsx
使用:
excel文件需要以test_开头