title: nhtmlunit javascript not working
body: <p>I've been trying for hours to get nhtmlunit to render my backbone/jquery/marionette website, but having problems.</p>
  
  <p>This is the code I am using.</p>
  
  <pre><code>var webClient = new NHtmlUnit.WebClient(new NHtmlUnit.BrowserVersion(com.gargoylesoftware.htmlunit.BrowserVersion.Chrome));                
  webClient.JavaScriptEnabled = true;
  webClient.ThrowExceptionOnFailingStatusCode = true;
  webClient.ThrowExceptionOnScriptError = true;
  webClient.WaitForBackgroundJavaScript(500000);
  webClient.WaitForBackgroundJavaScriptStartingBefore(1000000);
  var page = webClient.GetPage(Request.Url.AbsoluteUri);
  return Content(page.WebResponse.ContentAsString);  
  </code></pre>
  
  <p>Nothing is working, not even a simple test where I just do a document.getElementById lookup.</p>
  
  <p>I sometimes get an error about not finding a method inside jquery 1.7.2, but even when I use a browser version that doens't report the error, javascript never seems to execute?</p>
  
  <p>It's like I'm always just looking at the raw response, not taking into account executed javascript?</p>