title: Selenium how to select an object by class
body: <p>I have a web page with a form and has a field that uses the jquery autocomplete function.</p>
  
  <p><img src="https://i.stack.imgur.com/g2RW7.png" alt="enter image description here"></p>
  
  <p>This is how the HTML renders after a user name returns 1 or more results.</p>
  
  <p>However I cannot figure out how to make Selenium "click" a  result.</p>
  
  <p><img src="https://i.stack.imgur.com/Kqkyn.png" alt="enter image description here"></p>
  
  <p>Can I do a jQuery type of selector.
  e.g.</p>
  
  <pre><code>$(".ul.ui-autocomplete li:first a")
  </code></pre>