用 fixture 复用登录状态 2026-10-22 约 1 分钟 Playwright 入门 · 第 5 篇 playwright pytest fixture 生命周期 代码复用 storage_state 保存登录态,避免每条用例都过一遍登录。 阅读全文
expect 断言:为什么它自带重试 2026-10-19 约 1 分钟 Playwright 入门 · 第 4 篇 playwright 断言 软断言 测试报告 web-first assertion 会自动重试到超时,不要自己写 time.sleep。 阅读全文
Playwright 的自动等待到底等了什么 2026-10-16 约 1 分钟 Playwright 入门 · 第 3 篇 playwright 等待 等待策略 超时 稳定性 可操作性检查:可见、稳定、可接收事件、未被遮挡。 阅读全文