usamashaikh13 / OrangeLabs2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OrangeLabs

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.

Prerequisites

  • Node.js: Make sure you have Node.js installed on your machine. You can download it from the official website: https://nodejs.org

Getting Started

  1. Clone the repository or download the project files to your local machine.

  2. Navigate to the project directory in your terminal or command prompt:

  3. Install the project dependencies using npm:

  4. 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.

  1. Customize the Puppeteer script according to your needs. Open puppeteer_script.js in your preferred code editor and modify the code as required.

Project Structure

  • 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.

Additional Resources

About


Languages

Language:JavaScript 100.0%