1 defUnselect_from_list_by_value (self, locator, *values):2 """unselects ' *values ' 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 notvalues:9 RaiseValueError ("No value given.")TenItems_str ="value (s) '%s '"%", ". Join (values) 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.") - - forValueinchvalues: -Select.deselect_by_value (value)
Method Name: Unselect_from_list_by_value (self, locator, *values)
Similar methods:
Public methods remove selected values from
Receive parameters: Locator,values
13 Rows: Use the _get_select_list (self, locator) method to return the Select Object
Selenium2library Series Keywords _selectelementkeywords unselect_from_list_by_value (self, locator, *values)