1 def unselect_from_list_by_label(self, locator, *labels): 2 """Unselects `*labels` from list identified by `locator` 3 4 Select...
分类:
其他好文 时间:
2015-04-29 00:15:23
阅读次数:
145
1 def page_should_contain_list(self, locator, message='', loglevel='INFO'): 2 """Verifies select list identified by `locator` is found fr...
分类:
其他好文 时间:
2015-04-28 22:32:35
阅读次数:
131
URL(统一资源定位符)什么是URL
URL的全称是Uniform Resource Locator(统一资源定位符)
通过1个URL,能找到互联网上唯一的1个资源
URL就是资源的地址、位置,互联网上的每个资源都有一个唯一的URLURL的基本格式 = 协议://主机地址/路径
例如:
http://www.baidu.com
http://www.oschina.net
协议:不同的...
分类:
移动开发 时间:
2015-04-27 18:33:24
阅读次数:
305
1 def get_selected_list_values(self, locator): 2 """Returns the values of selected elements (as a list) from the select list identified b...
分类:
其他好文 时间:
2015-04-26 16:27:11
阅读次数:
114
1 def get_selected_list_value(self, locator): 2 """Returns the value of the selected element from the select list identified by `locator`...
分类:
其他好文 时间:
2015-04-26 16:26:22
阅读次数:
85
1 def _get_select_list_options_selected(self, locator):2 select = self._get_select_list(locator)3 # TODO: Handle possible exceptio...
分类:
其他好文 时间:
2015-04-26 16:25:11
阅读次数:
71
1 def get_selected_list_label(self, locator):2 """Returns the visible label of the selected element from the select list identified by `lo...
分类:
其他好文 时间:
2015-04-26 15:08:13
阅读次数:
148
1 def get_list_items(self, locator):2 """Returns the values in the select list identified by `locator`.3 4 Select list keywords wo...
分类:
其他好文 时间:
2015-04-26 15:08:07
阅读次数:
130
# 公有方法(1)get_list_items(self, locator) 返回labels集合_get_select_list_options(self, select_list_or_locator) 返回select, select.options _get_labels_for_optio...
分类:
其他好文 时间:
2015-04-26 12:23:37
阅读次数:
138
1 def _get_select_list(self, locator):2 el = self._element_find(locator, True, True, 'select')3 return Select(el)私有方法根据传入的locator返...
分类:
其他好文 时间:
2015-04-26 12:16:50
阅读次数:
109