Playwright
#Puppeteer
ドキュメントが充実してるので、ドキュメント先行で理解することを考える
Fast and reliable end-to-end testing for modern web apps | Playwright
ライブラリ: microsoft/playwright: Node.js library to automate Chromium, Firefox and WebKit with a single API
Playwright debug:
Debugging tools | Playwright
inspector
PWDEBUG=1したあとに実行
await page.pause(); で コードで止める
クリックする場所が赤丸で表示される
ステップ実行できる
dev toolsの使用
console.logの利用
network activity
Playwright CLI
PlayWright を使ってE2Eテストを書いてみた
ユーザー操作を記録してのコード生成
ユーザー操作の記録には Playwright CLI というツールを使うことでできます。
https://github.com/microsoft/playwright-cli
FirebaseのFunctionsでスクレイピングするときの注意事項
#Google_Cloud_Functions
https://gyazo.com/aff1750aaf19442e492e0b5265969175