1.0.2 • Published 3 years ago
stefanove-puppetry v1.0.2
TypeScript Package with some useful functions to ease scraping of websites using Puppeteer
clickOnButton({ DOM: Puppeteer.page, Selector: String });
//finds a button by ID and clicks on it
getRenderedElements({ DOM: Puppeteer.page, prop: String, valueType: String });
//return an array of values from HTMLElements that match the chosen property
getRemoteObjectsElements({
DOM: Puppeteer.page,
prop: String,
valueType: String,
});
//return an array of HTMLElements that match the chosen property