进入conda安装目录激活环境
D:\Anacoda3>conda activate base
安装playwright
(base)D:\Anacoda3>pip3 install playwright -i https://pypi.tuna.tsinghua.edu.cn/simple
(base)D:\Anacoda3>python -m playwright install
实操
使用Playwright无需写一行代码,我们只需手动操作浏览器,它会录制我们的操作,然后自动生成代码脚本。文章来源:https://www.toymoban.com/news/detail-839067.html
python -m playwright codegen --target python -o test_01.py -b chromium https://10.65.1.2 --ignore-https-errors文章来源地址https://www.toymoban.com/news/detail-839067.html
到了这里,关于conda安装playwright的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!