Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: puppeteer-utilz package #43

Closed
wants to merge 1 commit into from
Closed

Add: puppeteer-utilz package #43

wants to merge 1 commit into from

Conversation

angel-rs
Copy link

puppeteer-utilz is a OSS package that I developed for a new project I have
I would like to have some visibility so that anyone that finds it useful can provide feedback/contribute/etc

on the roadmap, features/stuff that will be coming in the next couple of months for v2 are:

  • Proper documentation (website already live)
  • Unit Tests to make the library more solid
  • Explore for new apis/functions that make easier writing project with puppeteer.
  • Enhance api of functions to make them more developer friendly
  • easily extandable
  • great DX with logs using signale

As of v1.1.6, these are the available functions:

  • launchBrowser opens the browser with a specific startUrl, sugar syntax to puppeteer.launch & page.goto
  • typeInSelVal type value given a specific selector
  • blockResources block resources incoming from HTTP requests (such as stylesheets & images)
  • findElByContent find a DOMElement based on it's properties (i.e: an tag with ìnnerText="foo"
  • clickInSel click on a element based on a specific selector
  • getFrame useful when working against websites that use iframes
  • asyncForEach a way to use the functional .forEach & async/await
  • retryOperation a way to define the amount of times you want to retry a specific set of steps (i.e: try to fill a form)
  • waitForFrame wait for a iframe to be available
  • waitForDownload given a absolute path, wait for chrome to finish writing file contents to the given path
  • waitUntilUrl a different way to waitForNavigation but only checking the current browser URL (works when you know what the next link is)
  • setDownloadPath tell chrome in which folder you want to download fies to.

@githubcopyrightdoctor githubcopyrightdoctor linked an issue Jun 28, 2023 that may be closed by this pull request
Open
@angel-rs angel-rs closed this Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

>
1 participant