📜  木偶和Selenium之间的区别

📅  最后修改于: 2021-08-25 18:26:00             🧑  作者: Mango

1.木偶:
这是用于自动化Chrome浏览器的node.js库。该库是开源的,并提供了用于控制Chrome的高级API。 Puppeteer由Google自己开发,并在Chromium上运行脚本。默认情况下,Chromium在Puppeteer中无头运行,但可以切换为带头Chromium。

2.Selenium:
它是用于测试Web应用程序的框架。这是一个伞式项目,可以使Web浏览器自动化。它支持各种类型的Web浏览器,例如Firefox,Chrome等Selenium可用于Python,JavaScript和其他几种语言。与Appium使用时Selenium还支持用于移动设备的测试。 Puppeteer和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.