class selenium.webdriver.support.select.Select(webelement)
deselect_all()

Clear all selected entries. This is only valid when the SELECT supports multiple selections. throws NotImplementedError If the SELECT does not support multiple selections

deselect_by_index(index)

Deselect the option at the given index. This is done by examing the “index” attribute of an element, and not merely by counting.

Args:
  • index - The option at this index will be deselected
deselect_by_value(value)

Deselect all options that have a value matching the argument. That is, when given “foo” this would deselect an option like:

<option value=”foo”>Bar</option>
Args:
  • value - The value to match against
deselect_by_visible_text(text)

Deselect all options that display text matching the argument. That is, when given “Bar” this would deselect an option like:

<option value=”foo”>Bar</option>

Args:
  • text - The visible text to match against
select_by_index(index)

Select the option at the given index. This is done by examing the “index” attribute of an element, and not merely by counting.

Args:
  • index - The option at this index will be selected
select_by_value(value)

Select all options that have a value matching the argument. That is, when given “foo” this would select an option like:

<option value=”foo”>Bar</option>

Args:
  • value - The value to match against
select_by_visible_text(text)

Select all options that display text matching the argument. That is, when given “Bar” this would select an option like:

<option value=”foo”>Bar</option>
Args:
  • text - The visible text to match against
all_selected_options

Returns a list of all selected options belonging to this select tag

first_selected_option

The first selected option in this select tag (or the currently selected option in a normal select)

options

Returns a list of all options belonging to this select tag

class selenium.webdriver.support.wait.WebDriverWait(drivertimeoutpoll_frequency=0.5ignored_exceptions=None)

Bases: object

until(methodmessage='')

Calls the method provided with the driver as an argument until the return value is not False.

until_not(methodmessage='')

Calls the method provided with the driver as an argument until the return value is False.

最新文章

  1. Word2016(2013)怎么从任意页插入起始页码
  2. Docker Machine v1.11.2安装与使用
  3. 投资人谈VR色变,VR好戏却刚刚开始
  4. Careercup | Chapter 8
  5. Mac OS X 上的安装nsq并使用
  6. for循环、for循环嵌套
  7. [HDOJ4609]3-idiots(FFT,计数)
  8. 第一个Sprint冲刺第二天
  9. 使用Div+CSS布局设计网站的优点
  10. Mitmproxy首页、文档和下载 - 支持SSL的HTTP代理 - 开源中国社区
  11. hdu2571命
  12. spring+springMVC 整合 MongoDB 实现注册登录
  13. DWM1000 测距原理简单分析 之 SS-TWR
  14. android 控件获取 获取焦点
  15. linux:安装mysql管理工具phpmyadmin
  16. nginx 刷新显示404
  17. 494. Target Sum - Unsolved
  18. layer插件学习——提示层
  19. 续:纠正:ubuntu 【6.04 LTS】可以安装安装 ! for《Oracle-10.2.0.1,打补丁10.2.0.5:在 debian 版本4【不含4】以上,及 ubuntu 7.04【不含7.04】以上都可以安装!》
  20. Linux基础命令---diffstat

热门文章

  1. 对StackOverflow上投票最高的带javascript标签的问题的汇总
  2. 【ModelMap】jsp中显示springmvc modelmap传递的对象
  3. [BZOJ 1058] 报表统计
  4. [BZOJ3529]数表
  5. bzoj 1483: [HNOI2009]梦幻布丁
  6. js作用域对象与运用技巧
  7. 8VC Venture Cup 2016 - Final Round (Div. 2 Edition)B. sland Puzzle 水题
  8. gitHub 基础命令
  9. 汇编语言---GCC内联汇编
  10. 十三.spring-boot使用spring-boot-thymeleaf