title: How to navigate to another page after calling click?
body: <p>I am trying to get all the main links, then click on them and navigation to the page:</p>
  
  <pre><code>    WebClient client = new WebClient();
  
      HtmlPage page = client.getPage(url);
  
      // Get all links with a href of www.example.com/pages/1_
  
      List&lt;HtmlAnchor&gt; links = (List&lt;HtmlAnchor&gt;) page.getByXPath("//a[href='www.example.com/pages/1_*'");
  
      links[0].click();
  </code></pre>
  
  <p>After calling click, does it return a HtmlPage? (The <a href="http://en.wikipedia.org/wiki/NetBeans" rel="nofollow noreferrer">NetBeans</a> documentation is not telling me.)</p>
  
  <p>Does the <a href="http://en.wikipedia.org/wiki/XPath" rel="nofollow noreferrer">XPath</a> expression look OK?</p>