'Selects item in autocomplete where text of item matches item_text.'

def select_item_in_autocomplete_widget(self, item_text):

    self.wait_for_element_visibility('.ui-autocomplete    .ui-menu-item', 'Autocomplete    widget    is    visible')
    self.q(css='.ui-autocomplete    .ui-menu-item    a').filter((lambda el: (el.text == item_text)))[0].click()
