title: Select Radio Buttons in Selenium Webdriver [C#]
body: <p>I have this HTML </p>
  
  <pre><code>&lt;div class="Radio"&gt;
   &lt;label&gt;
    &lt;input class id="checkbox" name="category" type="radio" value="1"&gt;
    &lt;strong&gt; TONY STARK &lt;/strong&gt;
   &lt;/label&gt;
  
   &lt;label&gt;
    &lt;input class id="checkbox" name="category" type="radio" value="2"&gt;
    &lt;strong&gt; IRON MAN &lt;/strong&gt;
   &lt;/label&gt;
  
   &lt;label&gt;
    &lt;input class id="checkbox" name="category" type="radio" value="3"&gt;
    &lt;strong&gt; ROBERT DOWNEY &lt;/strong&gt;
   &lt;/label&gt;
  </code></pre>
  
  <p>I need to select radio buttons based on <code>TONY STARK</code> , <code>IRON MAN</code> , <code>ROBERT DOWNEY</code> as the user passes it as a flexible parameter </p>
  
  <p>I tried this, but any other easy way would definitely help me! </p>
  
  <pre><code>driver.FindElement(By.Id("checkbox"));
  for(WebElement radiobutton: radiobuttons)
  { 
    if(radiobutton.getAttribute("value").equals("TONY STARK"))
    radiobutton.click();
  }
  </code></pre>