摘要:
1 def _get_labels_for_options(self, options):2 labels = []3 for option in options:4 labels.append(option.text)5 ... 阅读全文
摘要:
1 def _get_select_list_options(self, select_list_or_locator):2 if isinstance(select_list_or_locator, Select):3 select = select... 阅读全文
摘要:
1 def _get_select_list(self, locator):2 el = self._element_find(locator, True, True, 'select')3 return Select(el)私有方法根据传入的locator返... 阅读全文
摘要:
# 公有方法(1)get_list_items(self, locator) 返回labels集合_get_select_list_options(self, select_list_or_locator) 返回select, select.options _get_labels_for_optio... 阅读全文