如果有人知道什么是 puppeteer 以及如何在 headless chrome 的 selenium 自动化中使用它,请指导我。
以下是 puppeteer 师的链接。
https://github.com/GoogleChrome/puppeteer
1) 我可以将它与 Java 语言一起用于自动化测试吗?
2)使用这个有什么用?
我是这个 puppeteer 的新手,我想在我的基于 java 和 selenium 的项目中使用它。
最佳答案
Puppeteer 是仅在 Chrome 上运行的 selenium 的替代品。不可能从 selenium 运行 puppeteer。 Puppeteer 专为 chrome 设计,仅在 Node.js 环境中运行。如果您有兴趣从 selenium 运行 chrome headless 这个 thread可能对你很有值(value)。
关于google-chrome - 如何在 Selenium 自动化测试中使用 puppeteer 进行 headless Chrome ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46791348/