用 fixture 复用登录状态 2026-10-22 约 1 分钟 Playwright 入门 · 第 5 篇 playwright pytest fixture 生命周期 代码复用 storage_state 保存登录态,避免每条用例都过一遍登录。 阅读全文