摘要: 1 def list_should_have_no_selections(self, locator): 2 """Verifies select list identified by `locator` has no selections. 3 4 Se... 阅读全文
posted @ 2015-04-28 22:17 小凡(loveok_56) 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 def list_selection_should_be(self, locator, *items): 2 """Verifies the selection of select list identified by `locator` is exactly `*it... 阅读全文
posted @ 2015-04-28 22:09 小凡(loveok_56) 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 def _get_values_for_options(self, options):2 values = []3 for option in options:4 values.append(option.get_attribut... 阅读全文
posted @ 2015-04-28 21:36 小凡(loveok_56) 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1 def page_should_contain_list(self, locator, message='', loglevel='INFO'): 2 """Verifies select list identified by `locator` is found fr... 阅读全文
posted @ 2015-04-28 21:27 小凡(loveok_56) 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑