Puppeteer Project
This project utilizes Puppeteer, a Node.js library, to automate tasks in a headful browser. The project demonstrates filling a form on the swap.defillama.com website using Puppeteer.
- Node.js: Make sure you have Node.js installed on your machine. You can download it from the official website: https://nodejs.org
-
Clone the repository or download the project files to your local machine.
-
Navigate to the project directory in your terminal or command prompt:
-
Install the project dependencies using npm:
-
Run the Puppeteer script:
This command will launch a headful browser, navigate to swap.defillama.com, fill in the form fields, select options, and take a screenshot.
- Customize the Puppeteer script according to your needs. Open
puppeteer_script.js
in your preferred code editor and modify the code as required.
puppeteer_script.js
: The main script file that utilizes Puppeteer to automate tasks in the headful browser.form_filled.png
: A screenshot of the page after filling the form.
- Puppeteer Documentation: https://pptr.dev
- Node.js Documentation: https://nodejs.org/docs