0

Does anyone have any instructions for a .net dev to run HtmlUnit and HtmlUnitDriver as a standalone server so that I can connect to it from .net tests, using selenium-webdriver's RemoteWebDriver?

I'm not interested in porting HtmlUnit, and I'm perfectly happy to run a jar file, I just don't know how to!

Thanks Matt

1 Answer 1

1

Assuming you have Java installed, it should be as simple as downloading the standalone server jar from here, then running:

java -jar selenium-standalone-server.jar
Sign up to request clarification or add additional context in comments.

2 Comments

Excellent! Like the sound of that. Any idea which port I point RemoteWebDriver at?
Ah. Just ran it, and it tells you - 127.0.0.1:444/wd/hub. And what's more - there's an overload constructor to RemoteWebDriver that just talks to it. Simply create new RemoteWebDriver(DesiredCapabilities.HtmlUnit)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.