I want to post a data using webclient but i have problem on submit button because i am not getting submit button object in page source.so how can i use this button in webclient.this is the source code which is creates button in web.
<a class="btn-cta btn-type1 _submit" onclick="hs.throbberMgrObj.add('._submit'); $('#member').submit();" href="#">
this is the HtmlUnit WebClient code which i am using-
HtmlHiddenInput submitButton = null;
try {
submitButton = forms.get(0).getInputByName("form_submit");
} catch (Exception e) {
e.printStackTrace();
}
HtmlTextInput usernameInput = form.getInputByName("");
HtmlPasswordInput passInput = form.getInputByName("");
usernameInput.setValueAttribute();
passInput.setValueAttribute();
HtmlPage pageAfterLogin = (HtmlPage) submitButton.click();
Note: I have already try HttpClient and urlConnection but it is not provide proper solution.
Thanks In Advanced.