Selenium2Library系列 keywords 之 _SelectElementKeywords 之 select_from_list_by_value(self, locator, *values)
def select_from_list_by_value(self, locator, *values):
"""Selects `*values` from list identified by `locator` Select list keywords work on both lists and combo boxes. Key attributes for
select lists are `id` and `name`. See `introduction` for details about
locating elements.
"""
if not values:
raise ValueError("No value given.")
items_str = "value(s) '%s'" % ", ".join(values)
self._info("Selecting %s from list '%s'." % (items_str, locator)) select = self._get_select_list(locator)
for value in values:
select.select_by_value(value)
方法名:select_from_list_by_value(self, locator, *values)
相似方法:
公共方法 选中所有values项
接收参数:locator,*values
13行:使用_get_select_list(self, locator)方法,返回Select对象
Selenium2Library系列 keywords 之 _SelectElementKeywords 之 select_from_list_by_value(self, locator, *values)的更多相关文章
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 unselect_from_list_by_value(self, locator, *values)
		def unselect_from_list_by_value(self, locator, *values): """Unselects `*values` from ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 select_from_list_by_label(self, locator, *labels)
		def select_from_list_by_label(self, locator, *labels): """Selects `*labels` from list ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 unselect_from_list_by_label(self, locator, *labels)
		def unselect_from_list_by_label(self, locator, *labels): """Unselects `*labels` from ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 unselect_from_list_by_index(self, locator, *indexes)
		def unselect_from_list_by_index(self, locator, *indexes): """Unselects `*indexes` fro ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 unselect_from_list(self, locator, *items)
		def unselect_from_list(self, locator, *items): """Unselects given values from select ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 select_from_list(self, locator, *items)
		def select_from_list(self, locator, *items): """Selects `*items` from list identified ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 list_should_have_no_selections(self, locator)
		def list_should_have_no_selections(self, locator): """Verifies select list identified ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 list_selection_should_be(self, locator, *items)
		def list_selection_should_be(self, locator, *items): """Verifies the selection of sel ... 
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 get_selected_list_values(self, locator)
		def get_selected_list_values(self, locator): """Returns the values of selected elemen ... 
随机推荐
- 【解惑】Java动态绑定机制的内幕
			在Java方法调用的过程中,JVM是如何知道调用的是哪个类的方法源代码? 这里面到底有什么内幕呢? 这篇文章我们就将揭露JVM方法调用的静态(static binding) 和动态绑定机制(auto ... 
- Android 使用Application类保存应用的全局数据
			在实际应用我们经常需要对数据进行交互与保存,但Intent中默认的方法对传输数据是有类型限制的,当我们需要传输或保存一个复杂的泛型数据时,使用Application是一个很好的解决办法. 顾名思义,A ... 
- 【USACO】【Section1.1】Greedy Gift Givers
			小白题,也没啥好说的.关键我的算法感觉特别菜的一点是每次要遍历数组从人名找对应的编号,这个效率就很低了.看了ANALYZE里面也是这样的.不过它比我好的一点是我多余设置了initial_money变量 ... 
- Git查看、删除、重命名远程分支和tag【转】
			转自:http://zengrong.net/post/1746.htm 本站文章除注明转载外,均为本站原创或者翻译. 本站文章欢迎各种形式的转载,但请18岁以上的转载者注明文章出处,尊重我的劳动,也 ... 
- [原]Water Water Union-Find Set & Min-Spanning Tree Problems' Set~Orz【updating...】
			[HDU] 1213 - How Many Tables [基础并查集,求父节点个数] 1856 -More is better [基础并查集,注意内存,HDU数据水了,不用离散化,注意路径压缩的方式 ... 
- c语言类型转换注意事项
			转载自: http://blog.csdn.net/zhuimengzh/article/details/6728492 1.隐式转换 C在以下四种情况下会进行隐式转换: 1.算 ... 
- MySQL工具:管理员必备的10款MySQL工具
			MySQL是一个复杂的的系统,需要许多工具来修复,诊断和优化它.幸运的是,对于管理员,MySQL已经吸引了很多软件开发商推出高品质的开源工具来解决MySQL的系统的复杂性,性能和稳定性,其中大部分是免 ... 
- ubuntu下root用户配置
			01 接着,输入su root,以root用户登录, 由于命令提示符太长,这里输入export PS1='[\u@\h \W]$'重新设置了一下提示符,然后输入 cp -p /etc/lightdm/ ... 
- 自定义View(7)draw与onDraw区别
			draw()这个函数本身会做很多事情,可参看源码. * 1. Draw the background * 2. If necessary, save ... 
- cdoj  1324 卿学姐与公主  线段树裸题
			卿学姐与公主 Time Limit: 2000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) Submit St ... 
