title: How to get the content of a specific iframe using HtmlUnit. Iframe doesn't have name but it has ID
body: <p>I want to get the content of a specific iframe using HtmlUnit. From one of the post (<a href="https://stackoverflow.com/questions/12866694/htmlunit-cant-get-the-js-ajax-added-of-iframe">HtmlUnit can&#39;t get the js / ajax added of IFRAME</a>) I got an idea that I can use this code:</p>
  
  <pre><code>HtmlPage currentPage = (HtmlPage)webClient.getWebWindowByName("Frame Name").getEnclosedPage();
  </code></pre>
  
  <p>But the issue is that iframe doen't have name. The iframe which i am trying to access have id not name. Something like this:</p>
  
  <pre><code>&lt;iframe class="text" id="frameContent" style="width:548px;" frameborder="0" src="" tabindex="-1" allowtransparency="true" scrolling="no" height="210"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>How to get the content in this scenario? </p>