Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 676 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 676 Bytes

humanScroll Documentation

The humanScroll is designed to simulate human-like scrolling behavior on a web page using puppeteer. It includes a combination of smooth and random scrolling movements to mimic natural user behavior.

Prerequisites

  • This function is intended to be used with puppeteer for browser automation.

Usage

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  // Example usage
  const scrollActions = await humanScroll(page);
  await scrollActions.scroll(3, 'down');

  await browser.close();
})();