title: Login Authentication through HtmlUnit Web Client
body: <p>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.</p>
  
  <pre><code>&lt;a class="btn-cta btn-type1 _submit" onclick="hs.throbberMgrObj.add('._submit'); $('#member').submit();" href="#"&gt;
  </code></pre>
  
  <p>this is the HtmlUnit WebClient code which i am using-</p>
  
  <pre><code>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();
  </code></pre>
  
  <p>Note: I have already try HttpClient and urlConnection but it is not provide proper solution.</p>
  
  <p>Thanks In Advanced.</p>