一、依赖环境
python, version==3.9.5
pytest-playwright, version==0.5.1
allure-pytest, version==2.13.5
pytest, version==6.2.5
allure, version==2.22.0
pytest-playwright
支持如下命令行参数:
Playwright:--browser={chromium,firefox,webkit}Browser engine which should be used--headed Run tests in headed mode.--browser-channel=BROWSER_CHANNELBrowser channel to be used.--slowmo=SLOWMO Run tests with slow mo--device=DEVICE Device to be emulated.--output=OUTPUT Directory for artifacts produced by tests, defaults to test-results.--tracing={on,off,retain-on-failure}Whether to record a trace for each test.--video={on,off,retain-on-failure}Whether to record video for each test.--scr