1 defUnselect_from_list_by_label (self, locator, *labels):2 """unselects ' *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 ("unselecting%s from list '%s '."%(ITEMS_STR, locator)) A -select =self._get_select_list (Locator) - if notselect.is_multiple: the RaiseRuntimeError ("Keyword ' unselect from list ' works only for multiselect lists.") - - forLabelinchLabels: -Select.deselect_by_visible_text (label)
Method Name: Unselect_from_list_by_label (self, locator, *labels)
Similar methods:
Public method removes the selected state from the given labels
Receive parameters: Locator,labels
13 Rows: Use the _get_select_list (self, locator) method to return the Select Object
Selenium2library Series Keywords _selectelementkeywords unselect_from_list_by_label (self, locator, *labels)