1.2.0 • Published 3 years ago
puppeteer_ui v1.2.0
Puppeteer on steroids :muscle: !!!
jupyter notebook like development environment for puppeteer. Build puppeteer apps with least effort and best result.
installation
requirements:
- nodejs latest version
- Chromium browser
How to install:
# clone this repo
git clone https://github.com/adnangif/puppeteer_ui
# navigate to puppeteer_ui folder
cd puppeteer_ui
# install dependancy
npm install
# now to run the APP
node index.js
Or,
# install yarn, this is optional but recommended
npm install -g yarn
# Now use yarn to install
yarn global add puppeteer_steroids # may take upto 20minutes depending on internet connection
# run from command line
puppeteer_ui
After running this code, a link should open on your default browser At: http://localhost:3000 And another blank page chromium or google chrome browser instance will open with puppeteer in charge.
Usage:
By default, page object is given to do any kind of operation, for Example:
await page.goto("https://google.com/")
await page.type("input", "github.com/adnangif",{delay:200})
await page.type("input", "\n",{delay:200})
await page.click("h3")
await page.click("span[title='puppeteer_ui']")
Demo
0. 1. 2. 3. 4. 5. 6. 7.
special thanks to zbz343 for creating this awesome readme