Webdriver api--part 13th UI Support

Source: Internet
Author: User

class Selenium.webdriver.support.select. Select ( webelement )
Deselect_all ( )

Clear all selected entries. This is a 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 do by examing the "index" attribute of a element, and not merely by counting.

args:
  • index-the option at the This index would be des Elected
deselect _by_value ( value )

Deselect all options which has a value mat Ching the argument. That's, when given ' Foo ' this would deselect a option like:

<option value= "foo" >bar</opti on>
args:
  • value-the value T o match against
d Eselect_by_visible_text ( text )

Deselect all options The DIS Play text matching the argument. That's, when given ' Bar ' this would deselect a 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 do by examing the "index" attribute of a element, and not merely by counting.

args:
  • index-the option at the This index would be sel ected
select _by_value ( value )

Select all options which has a value match ing the argument. That's, when given ' foo ' this would select a option like:

<option value= "foo" >BAR</OPTION>

args:
  • value-the value to match against
sel Ect_by_visible_text ( text )

Select all options The display T Ext matching the argument. That's, when given ' Bar ' this would select a option like:

<option value= "foo" >bar</option >
args:
  • text-the visible te XT 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&NBSP; selenium.webdriver.support.wait. webdriverwait ( driver timeout poll_frequency=0.5 ignored_ Exceptions=none )

Bases: Object

until ( method, message= " )

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

Until_not ( method, message= " )

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

Webdriver api--part 13th UI Support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.