title: Webbrowser control select radio button and click submit
body: <p>I'm trying to get my <code>WebBrowser</code> control to select a radio button and as well click a submit button which doesn't have any id or name.</p>
  
  <p>Here is the html code from the web page:</p>
  
  <pre><code>&lt;form method="post"&gt;
     &lt;input type="radio" name="chosen" value="3" id="a3"&gt;
     &lt;input type="radio" name="chosen" value="2" id="a2"&gt;
     &lt;input type="radio" name="chosen" value="1" id="a1"&gt;
     &lt;input value="Next" type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is the C# code I've tried:</p>
  
  <pre><code>wbv(3); //This part just check every 3 seconds to see if the page the page has loaded before continuing with the code
  webBrowser1.Document.GetElementsByTagName("input").GetElementsByName("chosen")[2].InvokeMember("click");
  webBrowser1.Document.GetElementsByTagName("input").GetElementsByValue("Next")[0].InvokeMember("click");
  </code></pre>
  
  <p>I need help to figure out how to get my code to select the <code>radio</code> button with value 3 and then click the <code>submit</code> button.</p>