Using the example from the Selenium website, just like this happens, the test fails with the same NoSuchElementException . It also fails to instantiate a browser emulation, such as BrowserVersion.FIREFOX_3 .
Does HtmlUnitDriver work at all? Is there a need to configure it first?
Update: I am behind a proxy and, unlike drivers that use real browsers, this driver does not know about proxies. It must be manually configured in a test case with a call:
HtmlUnitDriver.setProxy(host, port);
I still do not understand how to configure it with a username and password for those proxies that require authentication.
source share