Playwright - 基础知识

Playwright - 基础知识

💡 原文英文,约100词,阅读约需1分钟。
📝

内容提要

安装pytest-playwright和playwright后,文件名以test开头的测试可通过$pytest命令运行。使用$pytest --headed --browser firefox可在浏览器中查看执行过程。可通过$playwright codegen记录流程并复制代码。

🎯

关键要点

  • 安装pytest-playwright和playwright后,文件名以test开头的测试可通过$pytest命令运行。

  • 使用$pytest --headed --browser firefox可在浏览器中查看执行过程。

  • 可通过$playwright codegen记录流程并复制代码。

➡️

继续阅读