Puppeteer Tutorial
Selected Reading
- Puppeteer - Discussion
- Puppeteer - Useful Resources
- Puppeteer - Quick Guide
- Puppeteer - Capture Screenshot
- Puppeteer - Synchronization
- Puppeteer - Disable JavaScript
- Puppeteer - Device Emulation
- Puppeteer - Getting Element Attribute
- Puppeteer - Getting Element Text
- Puppeteer - Keyboard Simulation
- Puppeteer - Handling Frames
- Handling Edit Boxes & Checkboxes
- Puppeteer - Handling Links/Button
- Puppeteer - Attribute Selector
- Puppeteer - Id Selector
- Name Selector & Class Name Selector
- Puppeteer - Type Selector
- Puppeteer - Xpath Axes
- Puppeteer - Relative Xpath
- Puppeteer - Absolute Xpath
- Puppeteer - Xpath Grouping
- Puppeteer - Xpath Attributes
- Puppeteer - Xpath Functions
- Puppeteer - Locators
- Puppeteer - Handling Drop-downs
- Puppeteer - Handling Confirm Alerts
- Puppeteer - Chrome
- Puppeteer - Firefox
- Puppeteer - Basic Commands
- Puppeteer - Handling Tabs
- Puppeteer - Browser Operations
- Comparison Between Puppeteer & Cypress
- Comparison Between Puppeteer & Protractor
- Comparison Between Puppeteer & Selenium
- Puppeteer - Non Headless Execution
- Puppeteer - Basic Test
- Puppeteer - Installation
- Puppeteer VS Code Configuration
- Puppeteer - NodeJS Installation
- Puppeteer - Usage of Google
- Puppeteer - Element Handling
- Puppeteer - Introduction
- Puppeteer - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Comparison Between Puppeteer & Selenium
Comparison Between Puppeteer & Selenium
The major differences between Puppeteer and Selenium are given below −
Sr.No | Puppeteer | Selenium |
---|---|---|
1 | Puppeteer is developed mainly for Chromium so the tests developed are mainly executed in Chrome. | Selenium can be used to execute tests on multiple browsers pke Chrome, Firefox, IE, Safari, and so on. |
2 | Puppeteer code can be implemented only in JavaScript. | Selenium code can be implemented on multiple languages pke Java, Python, JavaScript, C#, and so on. |
3 | Puppeteer provides APIs to manage headless execution in Chrome by using the DevTools protocol. | Selenium requires additional external browser drivers that trigger tests as per the user commands. |
4 | Puppeteer manages the Chrome browser. | Selenium is primarily used to execute tests to automate the actions performed on the browser. |
5 | Puppeteer is faster in executing tests than Selenium. | Selenium is slower in executing tests than Puppeteer. |
6 | Puppeteer is a module in node developed for Chromium engine. | Selenium is a dedicated test automation tool. |
7 | Puppeteer can be used for API testing by utipsing the requests and the responses. | API testing with Selenium is difficult. |
8 | Puppeteer can be used to verify the count of CSS and JavaScript files utipsed for loading a webpage. | Selenium cannot be used to verify the count of CSS and JavaScript files utipsed for loading a webpage. |
9 | Puppeteer can be used to work on the majority of features in the DevTools in the Chrome browser. | Selenium cannot be used to work on the majority of features in the DevTools in the Chrome browser. |
10 | Puppeteer can be used to execute tests on various devices with the help of the emulators. | Using an emulator with Selenium is not easy. |
11 | Puppeteer can be used to obtain the time needed for a page to load. | Selenium cannot be used to obtain the time needed for a page to load. |
12 | Puppeteer can be used to save a screenshot in both image and PDF formats. | Selenium can be used to save a screenshot in both image and PDF formats only in the Selenium 4 version. |
13 | Puppeteer was first introduced in the year 2017. | Selenium was first introduced in the year 2004. |
14 | In Puppeteer, we can verify an apppcation without image loading. | In Selenium, we can verify an apppcation without image loading. |