title: Is there a working example of HTMLUnit log in and few clicks
body: <p>Possibly showing Javascript Test Support</p>
  
  <pre> <code>
  package htmlunitpoc;
  
  import com.gargoylesoftware.htmlunit.WebClient;
  import com.gargoylesoftware.htmlunit.html.HtmlForm;
  import com.gargoylesoftware.htmlunit.html.HtmlPage;
  import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput;
  
  /**
   *
   * @author 
   */
  public class HtmlPoc {
  
      /**
       * @param args the command line arguments
       */
     public static void main(String[] args) throws Exception {
  
          WebClient wc = new WebClient();
                  HtmlPage page = (HtmlPage) wc.getPage("http://www.google.com");
                  HtmlForm form = page.getFormByName("f");
                  HtmlSubmitInput button = (HtmlSubmitInput) form.getInputByName("btnG");
                  HtmlPage page2 = (HtmlPage) button.click();
  
      }
  
  
  }
  
  </code></pre>
  
  <p>but i get:</p>
  
  <p>Nov 17, 2010 3:41:14 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
  WARNING: Obsolete content type encountered: 'text/javascript'.
  BUILD SUCCESSFUL (total time: 4 seconds)</p>
  
  <p>Which does not help as it does not run as a Unit test, and shows Pass/Fail etc.</p>
  
  <p>I am using netbeans 6.9.1</p>