Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 585 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 585 Bytes

@d-zero/puppeteer-scroll

Puppeteerでスクロールするための関数を提供します。

IntersectionObserverloading="lazy"などの機能を使っているサイトに対して表示や読み込みを完了させるために、スクロールを行います。

インストール

yarn install @d-zero/puppeteer-scroll

使い方

import { scrollAllOver } from '@d-zero/puppeteer-scroll';

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com');

await scrollAllOver(page);