gpt4 book ai didi

google-chrome - 如何在 Selenium 自动化测试中使用 puppeteer 进行 headless Chrome

转载 作者:行者123 更新时间:2023-12-04 23:14:34 25 4
gpt4 key购买 nike

如果有人知道什么是 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com