title: c# selenium How to click on a checkbox
body: <p>I would like to click a chechbox through C# and Selenium. The checkbox HTML is as follows :</p>
  
  <pre><code>&lt;div class="ad-post-rules" ng-class="{'ad-post-rules-error': submitted &amp;amp;&amp;amp; addClassifiedForm.postRulesCheck.$error.required}" an-form-error="" an-form-error-optional-text="İlan verme kurallarını onaylamadınız."&gt;&lt;input id="postRulesCheck" class="checkBox sg-checkbox ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required" type="checkbox" value="1" name="postRulesCheck" ng-model="postRulesCheck" required="" an-form-object-name="İlan Verme Kuralları"&gt;&lt;label for="postRulesCheck"&gt;&lt;/label&gt;&lt;span class="rulesOpen" ng-click="adPostRules=true"&gt;İlan verme kurallarını&lt;/span&gt;&lt;label for="postRulesCheck"&gt;okudum, kabul ediyorum&lt;/label&gt;&lt;/div&gt;
  </code></pre>
  
  <p>My code is as follows :</p>
  
  <pre><code>Dim cekbul As IWebElement
  System.Threading.Thread.Sleep(1000)
  cekbul = driver.FindElement(By.Id("#postRulesCheck"))
  cekbul.Click()
  </code></pre>