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 the option at the given index. This is done by examing the “index” attribute of an element, and not merely by counting.
Args: |
|
---|
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: |
|
---|
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: |
|
---|
Select the option at the given index. This is done by examing the “index” attribute of an element, and not merely by counting.
Args: |
|
---|
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: |
|
---|
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: |
|
---|
Returns a list of all selected options belonging to this select tag
The first selected option in this select tag (or the currently selected option in a normal select)
Returns a list of all options belonging to this select tag
Bases: object
Calls the method provided with the driver as an argument until the return value is not False.
Calls the method provided with the driver as an argument until the return value is False.
webDriver API——第13部分UI Support
原文:http://www.cnblogs.com/hushaojun/p/4467668.html