摘要: 1 def get_selected_list_values(self, locator): 2 """Returns the values of selected elements (as a list) from the select list identified b... 阅读全文
posted @ 2015-04-26 15:37 小凡(loveok_56) 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 def get_selected_list_value(self, locator): 2 """Returns the value of the selected element from the select list identified by `locator`... 阅读全文
posted @ 2015-04-26 15:25 小凡(loveok_56) 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1 def get_selected_list_labels(self, locator): 2 """Returns the visible labels of selected elements (as a list) from the select list iden... 阅读全文
posted @ 2015-04-26 15:14 小凡(loveok_56) 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 def _get_select_list_options_selected(self, locator):2 select = self._get_select_list(locator)3 # TODO: Handle possible exceptio... 阅读全文
posted @ 2015-04-26 14:59 小凡(loveok_56) 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 def get_selected_list_label(self, locator):2 """Returns the visible label of the selected element from the select list identified by `lo... 阅读全文
posted @ 2015-04-26 14:04 小凡(loveok_56) 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1 def get_list_items(self, locator):2 """Returns the values in the select list identified by `locator`.3 4 Select list keywords wo... 阅读全文
posted @ 2015-04-26 13:34 小凡(loveok_56) 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 def _get_labels_for_options(self, options):2 labels = []3 for option in options:4 labels.append(option.text)5 ... 阅读全文
posted @ 2015-04-26 13:24 小凡(loveok_56) 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1 def _get_select_list_options(self, select_list_or_locator):2 if isinstance(select_list_or_locator, Select):3 select = select... 阅读全文
posted @ 2015-04-26 11:56 小凡(loveok_56) 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 def _get_select_list(self, locator):2 el = self._element_find(locator, True, True, 'select')3 return Select(el)私有方法根据传入的locator返... 阅读全文
posted @ 2015-04-26 11:38 小凡(loveok_56) 阅读(453) 评论(0) 推荐(0) 编辑
摘要: # 公有方法(1)get_list_items(self, locator) 返回labels集合_get_select_list_options(self, select_list_or_locator) 返回select, select.options _get_labels_for_optio... 阅读全文
posted @ 2015-04-26 11:19 小凡(loveok_56) 阅读(602) 评论(0) 推荐(0) 编辑