无法在 Eclipse 中使用 htmlunitsdriver
Not able to use htmlunitdriver in Eclipse
我正在尝试在 Eclipse 中使用 HTMLunitdriver。
我写了
WebDriver driver = new HtmlUnitDriver();
所有 jar 文件都已添加到构建路径中,但出现错误 "HTMLunit driver cannot be resolved to a type"。
任何人都可以提供任何指示吗?
你好 arjun 请降级到 2.52 它肯定会工作我也已经弄清楚为什么它不工作
HtmlUnitDriver was a part of Selenium main distribution package prior to Selenium version
2.53. If you are using Selenium 2.52 or earlier you don't need to download and install
HtmlUnitDriver, it is already there.
According to Selenium evolution strategy drivers should be separated from Selenium,
and a driver release cycle should be synchronized with the target browser release cycle
instead of Selenium release cycle. So this happened to HtmlUnitDriver too. It's not a part
of the main Selenium distribution since version 2.53.
请浏览 link 了解更多信息
https://github.com/SeleniumHQ/htmlunit-driver
此外,如果您想继续使用 2.53 版本,请在此处下载 HtmlUnitDriver 表单 https://github.com/SeleniumHQ/htmlunit-driver/releases
我正在尝试在 Eclipse 中使用 HTMLunitdriver。
我写了
WebDriver driver = new HtmlUnitDriver();
所有 jar 文件都已添加到构建路径中,但出现错误 "HTMLunit driver cannot be resolved to a type"。
任何人都可以提供任何指示吗?
你好 arjun 请降级到 2.52 它肯定会工作我也已经弄清楚为什么它不工作
HtmlUnitDriver was a part of Selenium main distribution package prior to Selenium version
2.53. If you are using Selenium 2.52 or earlier you don't need to download and install
HtmlUnitDriver, it is already there.
According to Selenium evolution strategy drivers should be separated from Selenium,
and a driver release cycle should be synchronized with the target browser release cycle
instead of Selenium release cycle. So this happened to HtmlUnitDriver too. It's not a part
of the main Selenium distribution since version 2.53.
请浏览 link 了解更多信息 https://github.com/SeleniumHQ/htmlunit-driver 此外,如果您想继续使用 2.53 版本,请在此处下载 HtmlUnitDriver 表单 https://github.com/SeleniumHQ/htmlunit-driver/releases