Webdriver api--Part 15th expected conditions support

Source: Internet
Author: User

class selenium.webdriver.support.expected_conditions. alert_is_present

Bases: Object

Expect an alert to being present.

EM class= "Property" >CLASS  selenium.webdriver.support.expected_conditions. element_located_selection_state_to_be ( locator is_selected )

bases: object

An Expectation to locate a element and check if the selection state specified was in this state. Locator is a tuple of (by, Path) is_selected is a Boolean

CLASS  selenium.webdriver.support.expected_conditions. element_located_to_be_selected ( locator )

bases: object

An Expectation for the element to being located is selected. Locator is a tuple of (by, path)

CLASS  selenium.webdriver.support.expected_conditions. element_selection_state_to_be ( element is_selected )

bases: object

An Expectation for checking if the given element is selected. Element is Webelement object is_selected is a Boolean. "

CLASS  selenium.webdriver.support.expected_conditions. element_to_be_clickable ( locator )

bases: object

An Expectation for checking an element are visible and enabled such that can click it.

CLASS  selenium.webdriver.support.expected_conditions. element_to_be_selected ( element )

bases: object

An Expectation for checking the selection is selected. Element is Webelement object

EM class= "Property" >CLASS  selenium.webdriver.support.expected_conditions. frame_to_be_available_and_switch_to_it ( locator )

bases: object

An Expectation for checking whether the given frame was available to switch to. If the frame is available it switches the given driver to the specified frame.

CLASS  selenium.webdriver.support.expected_conditions. invisibility_of_element_located ( locator )

bases: object

An Expectation for checking, an element was either invisible or not present on the DOM.

Locator used to find the element

CLASS  selenium.webdriver.support.expected_conditions. presence_of_all_elements_located ( locator )

bases: object

An Expectation for checking this there is at the least one element present on a Web page. Locator is used to find the element returns the list of webelements once they is located

CLASS  selenium.webdriver.support.expected_conditions. presence_of_element_located ( locator )

bases: object

An Expectation for checking, an element was present on the DOM of a page. This does not necessarily mean, the element is visible. Locator-used to find the element returns the Webelement once it is located

class   selenium.webdriver.support.expected_conditions. staleness_of ( element )

bases: object

Wait until an element was no longer attached to the DOM. Element was the element to wait for. Returns False if the element is still attached to the DOM, true otherwise.

CLASS  selenium.webdriver.support.expected_conditions. text_to_be_present_in_element ( locator text_ )

bases: object

An Expectation for checking if the given text was present in the specified element. Locator, text

EM class= "Property" >CLASS  selenium.webdriver.support.expected_conditions. text_to_be_present_in_element_value ( locator text_ )

bases: object

An Expectation for checking if the given text was present in the element ' s locator, text

class   selenium.webdriver.support.expected_conditions. title_contains ( title )

bases: object

An Expectation for checking that the title contains a case-sensitive substring. Title is the fragment of title expected returns True when the title matches, False otherwise

class   selenium.webdriver.support.expected_conditions. title_is ( title )

bases: object

An Expectation for checking the title of a page. Title is the expected title, which must are an exact match returns True if the title matches, False otherwise.

class   selenium.webdriver.support.expected_conditions. visibility_of ( element )

bases: object

An Expectation for checking this an element, known to being present on the DOM of a page, is visible. Visibility means the element is not only displayed but also have a height and width that's greater than 0. Element is the Webelement returns the (same) Webelement once it is visible

class selenium.webdriver.support.expected_conditions. visibility_of_element_located ( locator )

Bases: Object

An expectation for checking, an element is present on the DOM of a page and visible. Visibility means the element is not only displayed but also have a height and width that's greater than 0. Locator-used to find the element returns the Webelement once it's located and visible

Webdriver api--Part 15th expected conditions 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.