赞
踩
在公众号上面看到微软开源了一个项目叫【playwright-python】,进行简单操作使用,使用录制功能,记录如下:
开源项目地址:https://github.com/microsoft/playwright-python
详情查看playwright指南
会自动下载浏览器驱动文件(chromium,Firefox,和webkit)
pip install playwright
playwright install
也支持docker一键部署安装执行环境
查看帮助:
python -m playwright codegen --help
或playwright codegen --help
options含义:
-o, --output <file name> 将生成的脚本保存到文件中
--target <language> 使用的语言,javascript, python, python-async, csharp之一(默认值:"python")
-b, --browser <browserType> 使用的浏览器,
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。