kikukawa's diary

都内で活動するシステムエンジニアが書いてます。 興味を持った技術やハマったポイント、自分用メモをつけてます。 最近はweb中心

Puppeteerのメモ

ページ全てのスクリーンショットを取得する

await page.screenshot({ path: '/tmp/foo.jpg', fullPage: true });

ページのロードを待つ時間を指定する

timeoutで指定できます。

await page.goto('url'+tableCell04Val, {waitUntil: 'load', timeout: 0});