title: Click Checkbox by Value Selenium
body: <p>I have google around a bit trying to finds some way you can click check boxes by entering a value, similar what you can use to select values in Drop Down  List.
  But havent found a way yet.</p>
  
  <p>I have two check boxes with Yes and No</p>
  
  <pre><code>div class="radio"&gt;
   &lt;label&gt;
     &lt;input type="radio" name="LongTermContract" value="Yes" autocomplete="off" checked=""&gt;Yes
  &lt;/label&gt;
  &lt;label&gt;
  &lt;input type="radio" name="LongTermContract" value="No" autocomplete="off"&gt;No                                &lt;/label&gt;                          
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm also using PageObjects, </p>
  
  <pre><code>[FindsBy(How = How.Name, Using = "LongTermContract")]
  public IWebElement radioBtnLongTermContract { get; set; }
  </code></pre>
  
  <p>This is the Method I have.</p>
  
  <pre><code>    public static void SelectOptions(this IWebElement element, string value)
      {
          PropertiesCollection.driver.FindElement(By.XPath("//input[@value='" + value + "']")).Click();
  
      }
  </code></pre>
  
  <p>Now if im trying this</p>
  
  <pre><code>public void SelectValue(){
    Reporting("NO"); 
      }
  </code></pre>
  
  <p>I get an error that it does not find the element</p>
  
  <blockquote>
    <p>Additional information: no such element: Unable to locate element:
    {"method":"xpath","selector":"//input[@value='NO']"}</p>
  </blockquote>
  
  <p>Any ideas tips?</p>