title: GetElementsByTagName in Htmlagilitypack
body: <p>How do I select an element for e.g. textbox if I don't know its id?</p>
  
  <p>If I know its id then I can simply write:</p>
  
  <pre><code>HtmlAgilityPack.HtmlNode node = doc.GetElementbyId(id);
  </code></pre>
  
  <p>But I don't know textbox's ID and I can't find GetElementsByTagName method in HtmlagilityPack which is available in webbrowser control.
  In web browser control I could have simply written:</p>
  
  <pre><code>HtmlElementCollection elements = browser[i].Document.GetElementsByTagName("form");
  foreach (HtmlElement currentElement in elements)
  {
  
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is the HTML form I am talking about</p>
  
  <pre><code>&lt;form id="searchform" method="get" action="/test.php"&gt;
  &lt;input name="sometext" type="text"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Please note I don't know the ID of form. And there can be several forms on same page. The only thing I know is "sometext" and I want to get this element using just this name. So I guess I will have to parse all forms one by one and then find this name "sometext" but how do I do that?</p>