title: HtmlUnit getByXpath returns null
body: <p>I am coding with Groovy, however, I don't believe its a language specific set of questions.</p>
  
  <p>I actually have two questions</p>
  
  <p><strong>First Question</strong> </p>
  
  <p>I've run into an issue while using HtmlUnit. It is telling me that what I am trying to grab is null. </p>
  
  <p>The page I'm testing it on is: 
  <a href="http://browse.deviantart.com/resources/applications/psbrushes/?order=9&amp;offset=0#/dbwam4" rel="nofollow">http://browse.deviantart.com/resources/applications/psbrushes/?order=9&amp;offset=0#/dbwam4</a></p>
  
  <p>My code:</p>
  
  <pre><code>client = new WebClient(BrowserVersion.FIREFOX_3)
  client.javaScriptEnabled = false
  
  page = client.getPage(url)
  
  //coming up as null
  title = page.getByXPath("//html/body/div[4]/div/div[3]/div/div/div/div/div/div/div/div/div/div/h1/a")
  
  println title
  </code></pre>
  
  <p>This simply prints out: <strong>[]</strong></p>
  
  <p>Is this because the page uses <strong>onclick()</strong>? If so, how would I get around that? Enabling javascript creates a mess in my cmd prompt.</p>
  
  <p><strong>Second Question</strong></p>
  
  <p>I am wanting to also get the image but am having trouble because when I attempt to get the XPath (via firebug) it shows up as: <strong>//*[@id="gmi-ResViewSizer_img"]</strong></p>
  
  <p>How do I handle that?</p>