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
” 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.