'Return the autocomplete field value.'

def get_values(self):

    script = (u"\n                                window.GET_VALUES    =    [];\n                                $('%s    option:selected').each(function()    {\n                                                GET_VALUES.push($(this).attr('value'));\n                                });\n                                " % self.field_selector)
    self.case.browser.execute_script(script)
    return self.case.browser.evaluate_script(u'window.GET_VALUES')
