Login to Google Account using HtmlUnit
I'm trying to login to Google Acccount through HtmlUnit, but still something is wrong and I'm getting login page. What I'm doing wrong? Set email Click next button Set password Click login button Go to GMail page and it's still login page (output below) My example code: WebClient client = new WebClient(BrowserVersion.CHROME); client.setHTMLParserListener(HTMLParserListener.LOG_REPORTER); client.setJavaScriptEngine(new JavaScriptEngine(client)); client.getOptions().setJavaScriptEnabled(true); client.getCookieManager().setCookiesEnabled(true); client.getOptions().setThrowExceptionOnScriptError