Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 631 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 631 Bytes

TypeScript Package with some useful functions to ease scraping of websites using Puppeteer

clickOnButton

clickOnButton({ DOM: Puppeteer.page, Selector: String });
//finds a button by ID and clicks on it

getRenderedElements

getRenderedElements({ DOM: Puppeteer.page, prop: String, valueType: String });
//returns an array of values from HTMLElements that match the chosen property

getRemoteObjectsElements

getRemoteObjectsElements({
  DOM: Puppeteer.page,
  prop: String,
  valueType: String,
});
//returns an array of HTMLElements that match the chosen property