没有合适的资源?快使用搜索试试~ 我知道了~
python:初识自动化测试 playwright 库(csdn)————程序.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 93 浏览量
2021-12-03
10:57:48
上传
评论
收藏 208KB PDF 举报
温馨提示
试读
7页
python:初识自动化测试 playwright 库(csdn)————程序
资源推荐
资源详情
资源评论
Playwright 是由微软公司 2020 年初发布的新一代自动化测试工具,相较于目
前最常用的 Selenium,它仅用一个 API 即可自动执行主流浏览器(Chromium、
Firefox、WebKit)自动化操作。
安装
(venv) lifeng@apple bin % pip3 install playwright
Collecting playwright
Downloading playwright-1.17.0-py3-none-
macosx_10_13_x86_64.whl (29.6 MB)
|█████████████████████████████
███| 29.6 MB 26 kB/s
Collecting pyee>=8.0.1
Downloading pyee-8.2.2-py2.py3-none-any.whl (12 kB)
Collecting websockets>=8.1
Downloading websockets-10.1-cp39-cp39-
macosx_10_9_x86_64.whl (96 kB)
|█████████████████████████████
███| 96 kB 257 kB/s
Requirement already satisfied: greenlet>=1.0.0 in /Users/lifeng/
python-virtualenv/venv/lib/python3.9/site-
packages (from playwright) (1.1.2)
Installing collected packages: websockets, pyee, playwright
Successfully installed playwright-1.17.0 pyee-8.2.2 websockets-
10.1
安装好 playwright 库以后,再安装相应的浏览器:
(venv) lifeng@apple bin % playwright install chromium
Downloading Playwright build of chromium v939194 - 119.9 Mb
[=======] 100% 0.0s
Playwright build of chromium v939194 downloaded to /Users/life
ng/Library/Caches/ms-playwright/chromium-939194
Downloading Playwright build of ffmpeg v1006 - 1.1 Mb [=====
========] 100% 0.0s
Playwright build of ffmpeg v1006 downloaded to /Users/lifeng/L
ibrary/Caches/ms-playwright/ffmpeg-1006
(venv) lifeng@apple bin % playwright install firefox
Downloading Playwright build of firefox v1304 - 71.7 Mb [===
========] 100% 0.0s
Playwright build of firefox v1304 downloaded to /Users/lifeng/
Library/Caches/ms-playwright/firefox-1304
(venv) lifeng@apple bin % playwright install webkit
Downloading Playwright build of webkit v1578 - 54.2 Mb [====
========] 100% 0.0s
资源评论
一诺网络技术
- 粉丝: 0
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功