英文:
Edge chromium headless mode using java and selenium 3
问题
我无法使用Java和Selenium 3 (3.141.59)以无头模式启动Edge Chromium。我知道selenium 3在当前稳定版本中的功能有限,但我们不想投资于Selenium的Alpha版本。
Selenium 4不向后兼容,迁移到Selenium 4意味着需要进行许多更改并删除许多旧代码。
话虽如此,我的问题是,是否有解决这个问题的方法?
英文:
I am unable to launch the Edge Chromium in headless mode using the Java and Selenium 3 (3.141.59). 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 4 is not backward compatible, moving to Selenium 4 means making a lot of changes and removing lot of legacy code.
With that said, my question is, is there any solution to handle this problem ?
答案1
得分: 0
我发现你可以使用Selenium 3以无头模式启动Edge Chromium浏览器,但你需要在代码中添加对Selenium Tools for Microsoft Edge包的引用。
我找到了关于在.NET、Python和JS中引用Selenium Tools for Microsoft Edge包的示例。
不幸的是,我没有找到在JAVA中添加对Selenium Tools for Microsoft Edge包引用的方法。
因此,在JAVA项目中,你仍然需要使用Selenium 4 Alpha版本。
英文:
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
I found examples to reference the Selenium Tools for Microsoft Edge package in .Net, Python, and JS.
Unfortunately, I did not get any way to add a reference to the Selenium Tools for Microsoft Edge package in JAVA.
So for the JAVA project, you still need to use Selenium 4 Alpha version.
专注分享java语言的经验与见解,让所有开发者获益!
评论