1 defSelect_from_list_by_label (self, locator, *labels):2 """selects ' *labels ' from list identified by ' locator '3 4 Select list keywords work on both lists and combo boxes. Key attributes for5 Select lists is ' id ' and ' name '. See ' Introduction ' For details about6 locating elements.7 """8 if notLabels:9 RaiseValueError ("No value given.")TenItems_str ="label (s) '%s '"%", ". Join (labels) OneSelf._info ("Selecting%s from list '%s '."%(ITEMS_STR, locator)) A -select =self._get_select_list (Locator) - forLabelinchLabels: theSelect.select_by_visible_text (label)
Method Name: Select_from_list_by_label (self, locator, *values)
Similar methods:
Public method selects all labels items
Receive parameters: Locator,*labels
13 Rows: Use the _get_select_list (self, locator) method to return the Select Object
Selenium2library Series Keywords _selectelementkeywords select_from_list_by_label (self, locator, *labels)