playwrigth 录制命令
- 编程
- 2021-12-24
- 1090
playwright codegen https://passport.bilibili.com/login --save-storage=cookies.json # 保存状态 playwright codegen --load-storage=cookies.json # 加载状态
context.storage_state(path="bilibili.json") # 保存状态 context = browser.new_context(storage_state=r"C:\Users\dongmei\cookies.json") # 加载状态
上一篇:做项目必须的几道门槛
发表评论