This project captures screenshots of a given URL and saves them in PDF format.
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/samir93bj/screenshotApp.git cd screenshotApp
-
Install the dependencies:
npm install
To start the project and capture a screenshot, run the following command:
npm run start
You can watch a demonstration video of the project's functionality at the following link:
Watch Video on Loom: https://www.loom.com/share/c26171874f044d2097e0066702f8d28c?sid=2198f2fa-d3f4-4d33-91f8-84a86742f10b
The video demonstrates the following features:
1 - Navigating to the URL: Shows how the application navigates to the specified URL.
2 - Handling Timeout Error: Demonstrates the error handling when the page takes too long to load.
3 - Handling Other Errors: Demonstrates the error handling for other types of errors that may occur while loading the page.
4- Capturing Screenshot: Shows how the application captures a screenshot of the page and saves it to the local filesystem.
5 - File Storage: Demonstrates where the screenshot is stored on the local filesystem.