Eclipse で HTMLunitdriver を使用しようとしています。
私は書いた
WebDriver driver = new HtmlUnitDriver();
すべての jar ファイルがビルドパスに追加されますが、「HTMLunit ドライバーを型に解決できません」というエラーが表示されます。
誰でもこれに関する指針を提供できますか?
Eclipse で HTMLunitdriver を使用しようとしています。
私は書いた
WebDriver driver = new HtmlUnitDriver();
すべての jar ファイルがビルドパスに追加されますが、「HTMLunit ドライバーを型に解決できません」というエラーが表示されます。
誰でもこれに関する指針を提供できますか?
こんにちは 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.
詳細については、リンクを参照してください https://github.com/SeleniumHQ/htmlunit-driver また、2.53 バージョンを続行する場合は、HtmlUnitDriver フォームをこちらからダウンロードしてください https://github.com/SeleniumHQ/htmlunit-driver/リリース