1 def _get_select_list_options_selected(self, locator): 2 select = self._get_select_list(locator) 3 # TODO: Handle possible exception thrown by all_selected_options 4 return select, select.all_selected_options
方法名:_get_select_list_options_selected(self, locator)
私有方法 返回Select 元素对象和选中options集合
接收参数:locator
第2行:否则使用_get_select_list(self, locator)方法,返回Select对象
第4行:返回Select 元素对象和选中options集合
时间: 2024-10-05 05:50:27