Playwright 是由微軟(Microsoft)開發的開源端對端(End-to-End, E2E)自動化測試框架
於專案下 .\bin\Debug\net8.0\
在同一個 PowerShell 視窗執行:
PowerShell
$env:NODE_TLS_REJECT_UNAUTHORIZED="0"
然後:
PowerShell
.\playwright.ps1 install chromium
用 Playwright Codegen 自動產生,於專案build的folder下
.\playwright.ps1 codegen http://localhost:5000/Login
or
playwright codegen http://localhost:5000/Login
來源 : https://playwright.tw/dotnet/