title: dropdown selection in HTML table cell, using selenium webdriver and C#
body: <p>My HTML table has a cell in 5th column that contain drop-down menu of values "1", "2" and "3";</p>
  
  <p>so far I am at the point where I can get to that cell:</p>
  
  <pre><code>ICollection&lt;IWebElement&gt; table = driver.FindElements(By.Id("highVolumeSearchResults_group"));
  List&lt;IWebElement&gt; elements = table.ToList();                
  ICollection&lt;IWebElement&gt; cell_action = driver.FindElements(By.XPath(".//tbody/tr/td[5]"));
  </code></pre>
  
  <p><code>Cell_action</code> - is a variable that contains drop down options/values "1", "2", "3").  I am not sure how to proceed, but I need to be able to select any value from the drop-down menu.<br>
  Can anybody  give me a hint?</p>
  
  <p>The code behind it :</p>
  
  <pre><code> &lt;/table&gt;
        &lt;table id="highVolumeSearchResults_group" class="highVolumeSearchResults"&gt;
        &lt;thead&gt;
        &lt;tbody&gt;
          &lt;tr&gt;
           &lt;td class="title letter" rowspan="1"&gt;W&lt;/td&gt;
           &lt;td&gt;
              &lt;a id="group-name-244" href="/Portal/Workgroup/Details?id=244"&gt;WorkGroup_Cats&lt;/a&gt;
           &lt;/td&gt;
           &lt;td&gt;0&lt;/td&gt;
           &lt;td&gt;12/28/2012 4:14:01 PM&lt;/td&gt;
           &lt;td&gt;
             &lt;select id="244" onchange="CommitAction(244, this.options[this.selectedIndex].value, this)"&gt;
                &lt;option value=""&gt;------&lt;/option&gt;
                &lt;option value="edit"&gt;Edit Users&lt;/option&gt;
                &lt;option value="rename"&gt;Rename&lt;/option&gt;
                &lt;option value="delete"&gt;Delete&lt;/option&gt;
             &lt;/select&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
   &lt;/tbody&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>the problem is the 'select id="244" ' part - is dinamically generated, so I sghould not use the id. I need to come up with DropdownBox option, but dont know how yet. I have also tried to continue with :</p>
  
  <pre><code>IWebElement cell_action1 = cell_action.First(); and then 
  SelectElement DropDownBox_action = 
      new SelectElement(cell_action1.FindElement(
          By.XPath("//select[contains(, 'CommitAction')]")));  
  </code></pre>
  
  <p>This didn't work for me.</p>