'Get list of options of dropdown that is specified by selector on a given page.'

def get_select_options(self, page, selector):

    select_element = page.q(css=selector)
    self.assertTrue(select_element.is_present())
    return [option.text for option in Select(select_element[0]).options]
