摘要:
1 def get_selected_list_values(self, locator): 2 """Returns the values of selected elements (as a list) from the select list identified b... 阅读全文
摘要:
1 def get_selected_list_value(self, locator): 2 """Returns the value of the selected element from the select list identified by `locator`... 阅读全文
摘要:
1 def get_selected_list_labels(self, locator): 2 """Returns the visible labels of selected elements (as a list) from the select list iden... 阅读全文
摘要:
1 def _get_select_list_options_selected(self, locator):2 select = self._get_select_list(locator)3 # TODO: Handle possible exceptio... 阅读全文
摘要:
1 def get_selected_list_label(self, locator):2 """Returns the visible label of the selected element from the select list identified by `lo... 阅读全文
摘要:
1 def get_list_items(self, locator):2 """Returns the values in the select list identified by `locator`.3 4 Select list keywords wo... 阅读全文
摘要:
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... 阅读全文