2016-04-27 11 views
2

EclipseでHTMLunitdriverを使用しようとしています。Eclipseでhtmlunitdriverを使用できません

私はすべてのjarファイルをビルドパスに追加されますが、私はエラー「HTMLunitドライバが型に解決できない」そうだ

WebDriver driver = new HtmlUnitDriver(); 

を書かれています。

誰でもこれに関する任意のポインタを提供できますか?

+0

セレン2.53バージョンを使用しています –

+0

WebDriverとHtmlUnitDriverをインポートしていない可能性があります。もしそうでなければ、それをしてください。 –

+0

こんにちは、私は2.53を使用しています。 import文もエラーを出しています。 –

答えて

5

こんにちはアルジュンは、それは確かに、なぜあなたは2.53を続行したい場合は詳細も https://github.com/SeleniumHQ/htmlunit-driver するためのリンクを経由してください

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. 

を働いていないその私はそれを考え出したも動作します2.52にダウングレードしてくださいバージョンHtmlUnitDriverフォームをここからダウンロードしてくださいhttps://github.com/SeleniumHQ/htmlunit-driver/releases

+0

情報ありがとうございました... –

関連する問題