今天,我阅读了#30DaysOfPlaywright!!。作为一个推荐的入门 Playwright Todo List,它提供了特别有用的指导,尤其适用于初学者。该列表有助于更好地理解如何使用 Playwright,它涵盖了一系列常用的任务,从安装到最终的运行测试,都可以帮助初学者更加快速地上手。
- Installed Playwright Test package
- Created simple test script.
- Executed (headless) Playwright Test run - successfully.
- Executed (headless) Playright Test run - with failure.
- Created Configuration file (with mutliple project options)
- Ran Playwright Test in headed mode.
- Ran Playwright Test in headed mode - with multiple browsers.
- Ran Playwright Test - with different worker counts.
- Explore Playwright Test - commandline options
- Scaffolded new project for Playright Test (end-to-end)
- Learned about the expect library for default assertions.
- Learned about web assertions available in Playwright.
- Learned about fixtures in pytest.
- Learned about fixtures available in Playwright.
- Explored the Playwright Test API support for test hooks.
- Completed the Getting Started tutorial for Playwright.
- Command line tools - open pages, generate code, screenshots, PDF etc.
- Playwright Inspector - GUI-based tool to author and debug scripts.
- Trace Viewer - GUI-based tool to analyze Playwright Test run traces.
- Test Generator - CLI tool to record page interactions as test scripts.