目录
录制命令示例:playwright codegen --target python -o E:\桌面\test_pro.py -b chromium https://www.baidu.com
脚本录制参数
命令行中输入playwright codegen --help可查看所有的参数
C:\Users\DELL>playwright codegen --help
Usage: playwright codegen [options] [url]
open page and generate code for user actions
Options:
-o, --output <file name> saves the generated script to a file
--target <language> language to generate, one of javascript, playwright-test, python, python-async,
python-pytest, csharp, csharp-mstest, csharp-nunit, java, java-junit (default:
"python")
--save-trace <filename> record a trace for the session and save it to a file
--test-id-attribute &l