title: Selecting a checked list box item control in coded UI when the text contained within will not be known at runtime
body: <p>Is there a method of going about selecting items from a checked list box in coded ui when the exact text contained within the list box item will not be known until runtime? Perhaps a method of selecting a list box item at a certain index?..</p>
  
  <p>I've tried using click list box at point (x,y) but whenever a list item is in its place it throws and error because it is in the way, And i cant try clicking the list box item itself as the full text it displays is a randomly generated ID and i am not sure if there is another method of finding items. </p>
  
  <p>Another possibility would be passing in the text of the list box item to select at run time?</p>
  
  <p>This is currently what I am trying to do in order to grab the control although it's throwing errors due to type mismatch</p>
  
  <p>Managed to get it working with the following:</p>
  
  <pre><code>WinList uIItemList = UIMainwindowWindow.UIClbxSearchResultsWindow.UIClbxSearchResultsList;
  WinCheckBox listItem = (WinCheckBox)uIItemList.Items[0];
  listItem.Checked = true;
  </code></pre>