zoukankan      html  css  js  c++  java
  • webDriver API——第15部分Expected conditions Support

    class selenium.webdriver.support.expected_conditions.alert_is_present

    Bases: object

    Expect an alert to be present.

    class selenium.webdriver.support.expected_conditions.element_located_selection_state_to_be(locatoris_selected)

    Bases: object

    An expectation to locate an element and check if the selection state specified is in that 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 be located is selected. locator is a tuple of (by, path)

    class selenium.webdriver.support.expected_conditions.element_selection_state_to_be(elementis_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 is visible and enabled such that you 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

    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 is 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 that an element is 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 that there is at least one element present on a web page. locator is used to find the element returns the list of WebElements once they are located

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

    Bases: object

    An expectation for checking that an element is present on the DOM of a page. This does not necessarily mean that 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 is no longer attached to the DOM. element is 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(locatortext_)

    Bases: object

    An expectation for checking if the given text is present in the specified element. locator, text

    class selenium.webdriver.support.expected_conditions.text_to_be_present_in_element_value(locatortext_)

    Bases: object

    An expectation for checking if the given text is 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 be 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 that an element, known to be present on the DOM of a page, is visible. Visibility means that the element is not only displayed but also has a height and width that is 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 that an element is present on the DOM of a page and visible. Visibility means that the element is not only displayed but also has a height and width that is greater than 0. locator - used to find the element returns the WebElement once it is located and visible

  • 相关阅读:
    写作的益处
    【转载】德鲁克:激发我一生的七段经历
    PS如何删除灰色的自动切片
    其他经验博文分类链接
    LODOP单个简短问答(小页面无需拖动滚动条)
    LODOP导出excel的页眉页脚
    LODOP导出和写入excel测试
    LODOP导出Excel简短问答和相关博文
    Lodop导出excel带数字格式
    LODOP批量打印判断是否加入队列1
  • 原文地址:https://www.cnblogs.com/hushaojun/p/4467678.html
Copyright © 2011-2022 走看看