1 def select_from_list_by_value(self, locator, *values): 2 """Selects `*values` from list identified by `locator` 3 4 Select lis...
分类:
其他好文 时间:
2015-04-29 00:26:34
阅读次数:
303
1 def select_from_list(self, locator, *items): 2 """Selects `*items` from list identified by `locator` 3 4 If more than one valu...
分类:
其他好文 时间:
2015-04-29 00:25:43
阅读次数:
153
1 def unselect_from_list(self, locator, *items): 2 """Unselects given values from select list identified by locator. 3 4 As a sp...
分类:
其他好文 时间:
2015-04-29 00:25:19
阅读次数:
290
1 def list_should_have_no_selections(self, locator): 2 """Verifies select list identified by `locator` has no selections. 3 4 Se...
分类:
其他好文 时间:
2015-04-29 00:25:09
阅读次数:
176
1 def list_selection_should_be(self, locator, *items): 2 """Verifies the selection of select list identified by `locator` is exactly `*it...
分类:
其他好文 时间:
2015-04-29 00:22:43
阅读次数:
260
1 def unselect_from_list_by_value(self, locator, *values): 2 """Unselects `*values` from list identified by `locator` 3 4 Select...
分类:
其他好文 时间:
2015-04-29 00:17:17
阅读次数:
235
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 _get_values_for_options(self, options):2 values = []3 for option in options:4 values.append(option.get_attribut...
分类:
其他好文 时间:
2015-04-28 22:40:02
阅读次数:
101
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
方案一:建立一张热搜词的数据表 每次用户插入就直接更新该表即可ID KeyWords Count缺点:每次搜索后都要Update这张表,高并发的情况就不太好使方案二:建立一张热搜词的数据表 每次用户搜索一次,就直接将该用户搜索的词插入数据库(最好使用NoSql而非关系型数据库),毕竟插入数据库的速度...
分类:
其他好文 时间:
2015-04-27 13:07:03
阅读次数:
195