I have a web page with a form and has a field that uses the jquery autocomplete function.
Use XPath selector in Selenium:
xpath=//li[contains(@class, 'ui-autocomplete')]/li[1]/a
not checked, might require some corrections.