简体   繁体   English

边缘铬无头模式使用 java 和 selenium 3

[英]Edge chromium headless mode using java and selenium 3

I am unable to launch the Edge Chromium in headless mode using the Java and Selenium 3 (3.141.59).我无法使用 Java 和 Selenium 3 (3.141.59) 在无头模式下启动 Edge Chromium。 I am aware that selenium 3 does not possess much capabilities with current stable version but we don't want to invest in Alpha version of Selenium.我知道 selenium 3 目前的稳定版本没有太多功能,但我们不想投资 Selenium 的 Alpha 版本。 Selenium 4 is not backward compatible, moving to Selenium 4 means making a lot of changes and removing lot of legacy code. Selenium 4 不向后兼容,迁移到 Selenium 4 意味着进行大量更改并删除大量遗留代码。 With that said, my question is, is there any solution to handle this problem?话虽如此,我的问题是,有没有办法解决这个问题?

I found that you can launch the Edge Chromium browser in headless mode with Selenium 3 but you need to add a reference to the Selenium Tools for Microsoft Edge package我发现您可以使用 Selenium 3 在无头模式下启动 Edge Chromium 浏览器,但您需要添加对 Microsoft Edge ZEFE90A8E604A7C840E88D03A67F6B7DZ8 的 Selenium 工具的引用

I found examples to reference the Selenium Tools for Microsoft Edge package in.Net, Python, and JS.我在.Net、Python 和 JS 中找到了引用 Microsoft Edge package 的 Selenium 工具的示例。

Use Selenium 3 使用 Selenium 3

Unfortunately, I did not get any way to add a reference to the Selenium Tools for Microsoft Edge package in JAVA.不幸的是,我没有办法在 JAVA 中添加对 Microsoft Edge package 的 Selenium 工具的引用。

So for the JAVA project, you still need to use Selenium 4 Alpha version.所以对于 JAVA 项目,你仍然需要使用 Selenium 4 Alpha 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM