title: Coded UI checkbox check
body: <p>I am trying to check two checkboxes in a web page using coded UI tool (C#) using the below code snippet.</p>
  
  <pre><code>HtmlCheckBox chkVeh = new HtmlCheckBox(BrowserInstance);
  chkVeh.SearchProperties.Add(HtmlCheckBox.PropertyNames.Name, "checkbox1");
  chkVeh.SearchProperties.Add(HtmlCheckBox.PropertyNames.Value, "Option1");                    
  chkVeh.Checked = true;                   
  
  HtmlCheckBox chkVeh1 = new HtmlCheckBox(BrowserInstance);
  chkVeh1.SearchProperties.Add(HtmlCheckBox.PropertyNames.Name, "checkbox1");
  chkVeh1.SearchProperties.Add(HtmlCheckBox.PropertyNames.Value, "Option2");                   
  chkVeh1.Checked = true;
  </code></pre>
  
  <p>When I execute it. It checks the desired checkbox, but somehow just before moving to next step, it clicks on the checkbox again and unchecks the checkbox. At the end I'm left with 2 unchecked checkboxes.</p>
  
  <p>eg.Checkbox1 checked
  checkbox1 unchecked
  Checkbox2 checked
  Checkbox2 unchecked</p>
  
  <p>I'm using Visual studio 2012.
  Any pointers for this behaviour?</p>