selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Missing Package org.openqa.selenium.htmlunit in selenium-server-standalone-2.53.0

Open tanugandhi10 opened this issue 10 years ago • 5 comments

OS: <Windows 10> Selenium Version: <2.53.0> Browser: < Firefox > Browser Version: <45.0.1>

Expected Behavior -

Actual Behavior - Missing Package org.openqa.selenium.htmlunit in selenium-server-standalone-2.53.0

Steps to reproduce -

I tried to use HtmlUnitDriver class but it seems Package org.openqa.selenium.htmlunit is missing in Selenium 2.53.0 jar Although Package org.openqa.selenium.htmlunit is present in selenium-server-standalone-2.52.0

tanugandhi10 avatar Mar 25 '16 20:03 tanugandhi10

You should add htmlunit driver separate. If you are using maven, add dependency

<groupId>org.seleniumhq.selenium</groupId>  
<artifactId>htmlunit-driver</artifactId>  
<version>2.20</version>

mstankovic86 avatar Mar 28 '16 09:03 mstankovic86

the HTMLUnit Driver is no longer bundled with the standalone jar file.

as @mstankovic86 had mentioned, you need to add the dependency manually.

see: https://github.com/SeleniumHQ/htmlunit-driver

ddavison avatar Mar 28 '16 19:03 ddavison

Thank you guys for the solution.

tanugandhi10 avatar Mar 28 '16 22:03 tanugandhi10

WHat if I want to run them as a windows service using NSSM how do I load them?

jbellCR avatar May 06 '16 22:05 jbellCR

Omg so that's why...

Anyone know what the import statement would look like for an sbt project?

DanielGGordon avatar Oct 27 '16 20:10 DanielGGordon