Open In App

Difference between Puppeteer and Selenium

Improve
Improve
Like Article
Like
Save
Share
Report

1. Puppeteer :
It is the node.js library that is used to automate the Chrome. This library is open-source and provides a high-level API to control Chrome. Puppeteer was developed by Google itself and runs the script on Chromium. By default, the Chromium runs headless in Puppeteer but it can be switched to headed Chromium.

2. Selenium :
It is a framework that is used for testing web applications. It is an umbrella project that can automate the web browser. It supports different types of web browsers such as Firefox, Chrome, etc. Selenium is available for Python, JavaScript and few other languages. Selenium when used with Appium also supports testing for mobile devices.


Difference between Puppeteer and Selenium :

S.No. Puppeteer Selenium
1. It was developed by Google. It was originally developed by Jason Huggins in 2004.
2. It is Node.js library. It is a web framework for testing web applications.
3. It works only with Chrome or Chromium and does not support other browsers. Multiple browser support is given by Selenium.
4. It was released in 2017. It was released in 2004.
5. Puppeteer is faster than Selenium. Selenium is slower as compared to Puppeteer.
6. It supports only Node.js. It supports multiple language like Python, Ruby, Javascript, etc.
7. No cross platform support is provided. Cross platform support is provided.
8. It supports only web automation. Supports web automation and mobile automation both.
9. Screen shot can be taken of both PDFs and Images. No PDFs screenshot support is provided.


Last Updated : 02 Jul, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads