'Returns the values of selected elements (as a list) from the select list identified by `locator`.
Fails if there is no selection.
Select list keywords work on both lists and combo boxes. Key attributes for
select lists are `id` and `name`. See `introduction` for details about
locating elements.'

@keyword
def get_selected_list_values(self, locator):

    (select, options) = self._get_select_list_options_selected(locator)
    if (len(options) == 0):
        raise ValueError("Select    list    with    locator    '%s'    does    not    have    any    selected    values")
    return self._get_values_for_options(options)
