title: webdrive click an element in a list when the class does not reference the name
body: <p>I am doing a search, and then attempting to click on the name returned from the search result
  If i do a search for Bond, the below is the result I will see on the page</p>
  
  <pre><code>    &lt;li class = "resultsItem  " data-index ="0"&gt;
      &lt;div class = "name" data-cid ="d182a061-1afd-4924-b256-035d7e6f34ec" onclick="return true;"&gt;
      Bond, James      &lt;/div&gt;
      &lt;a class = "ir icon emailAction" href="mailto:jamesbond@mi6@.com"1&lt;/a&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>I tried using the following with selenium webdriver in Ruby</p>
  
  <pre><code>    element = driver.find_element(:name, "Bond, James")
      element = driver.find_element(:text, "Bond, James")
      element = driver.find_element(:data-cid, "d182a061-1afd-4924-b256-035d7e6f34ec")
  </code></pre>
  
  <p>I didn't think name, or text would work.  I didn't like data-cid but was hoping that would work.
  Anyone have any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Jeff</p>