HtmlUnitDriver not working

HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME);

The login page is loaded properly, but post login nothing happens, looks like waiting for something, but no error or warning.

The same code works perfectly in webdriver

sskini76 Train Asked on March 17, 2016 in Selenium WebDriver.
Add Comment
1 Answer(s)

”  HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME);”

HtmlUnitDriver is headless browser testing  then how come  you are using CHROME , that too that wnt make any sense on it , if u want to use browser name ‘ htmlunit” just use it as DesiredCapabilities properties.

for Headless browser testing i suggest you that PhantomJS( Ghost Driver) , it has reliability with selenium webdriver.

Anbarasan J.

Anbarasan Train Answered on March 22, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.