Skip to content
Related Articles
Open in App
Not now

Related Articles

Difference between Puppeteer and Selenium

Improve Article
Save Article
  • Last Updated : 02 Jul, 2020
Improve Article
Save Article

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.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!