作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果有人知道什么是 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/
我是一名优秀的程序员,十分优秀!