Try this ...
ich hier gefunden habe Lösung für linkedin Login ......
try {
String url = "https://www.linkedin.com/uas/login?goback=&trk=hb_signin";
final WebClient webClient = new WebClient();
webClient.getOptions().setJavaScriptEnabled(false);
webClient.getOptions().setCssEnabled(false);
final HtmlPage loginPage = webClient.getPage(url);
//Get Form By name
final HtmlForm loginForm = loginPage.getFormByName("login");
final HtmlSubmitInput button = loginForm.getInputByName("signin");
final HtmlTextInput usernameTextField = loginForm.getInputByName("session_key");
final HtmlPasswordInput passwordTextField = loginForm.getInputByName("session_password");
usernameTextField.setValueAttribute(userName);//your Linkedin Username
passwordTextField.setValueAttribute(password);//Your Linkedin Password
final HtmlPage responsePage = button.click();
String htmlBody = responsePage.getWebResponse().getContentAsString();
System.out.println(htmlBody);
} catch (Exception ex) {
ex.printStackTrace();
}
Haben Sie versucht, 'webClient.setAjaxController (neu NicelyResynchronizingAjaxController());'? – haihui
Ich habe versucht "webClient.setAjaxController (new NicelyResynchronizingAjaxController())". Aber ich kann mich nicht anmelden. – user2475467