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(locator, is_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(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 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(locator, text_)
-
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(locator, text_)
-
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
webDriver API——第15部分Expected conditions Support的更多相关文章
- <译>Selenium Python Bindings 6 - WebDriver API
本章涉及Selenium WebDriver的所有接口. Recommended Import Style 推荐的导入风格如下: from selenium import webdriver 然后,你 ...
- webdriver API study
This chapter cover all the interfaces of Selenium WebDriver. Recommended Import Style The API defini ...
- Selenium WebDriver Api 知识梳理
之前一直没有系统的梳理WebDriver Api的相关知识,今天借此机会整理一下. 1.页面元素定位 1.1.8种常用定位方法 # id定位 driver.find_element_by_id() # ...
- python+selenium自动化软件测试(第2章):WebDriver API
2.1 操作元素基本方法 前言前面已经把环境搭建好了,从这篇开始,正式学习selenium的webdriver框架.我们平常说的 selenium自动化,其实它并不是类似于QTP之类的有GUI界面的可 ...
- 2.28 查看webdriver API
2.28 查看webdriver API(带翻译) 前言 前面都是点点滴滴的介绍selenium的一些api使用方法,那么selenium的api到底有多少呢?本篇就教大家如何去查看seleni ...
- Webdriver API (二)
(转载) 1.3 打开测试页面 对页面对测试,首先要打开被测试页面的地址(如:http://www.google.com),web driver 提供的get方法可以打开一个页面: // And no ...
- webdriver API中文文档
1.1 下载selenium2.0的lib包 http://code.google.com/p/selenium/downloads/list 官方UserGuide:http://seleniu ...
- Webdriver API中文版
Webdriver API中文版 1.1 下载selenium2.0的lib包 http://code.google.com/p/selenium/downloads/list 官方UserGui ...
- Expected Conditions的常用函数
Expected Conditions的使用场景有两种 1.直接在断言中使用 2.与WebDriverWait配合使用,动态等待页面上元素出现或者消失 1. title_is: 判断当前页面的ti ...
随机推荐
- NGUI EventDelagate事件委托
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BUttonCl ...
- hdu 2196(Computer 树形dp)
A school bought the first computer some time ago(so this computer's id is 1). During the recent year ...
- [BZOJ2595]游览计划
斯坦纳树居然不是数据结构... 斯坦纳树应该是类似最小生成树的问题,只不过它允许增加额外的点 比如这道题就是找关于景点的最小生成树,但还要付出最小的代价,加一些额外的格子把景点都连起来 套路是设$f_ ...
- bzoj 3728: PA2014Final Zarowki
3728: PA2014Final Zarowki Description 有n个房间和n盏灯,你需要在每个房间里放入一盏灯.每盏灯都有一定功率,每间房间都需要不少于一定功率的灯泡才可以完全照亮.你可 ...
- python安装BeautifulSoup
1.先下载pip https://pypi.python.org/pypi/pip 安装pip cd到路径 python setuo.py install 2.添加目录到环境变量中 xxx\Pytho ...
- 十一. 图形、图像与多媒体5.Graphics2D类的绘图方法
Java语言在Graphics类提供绘制各种基本的几何图形的基础上,扩展Graphics类提供一个Graphics2D类,它拥用更强大的二维图形处理能力,提供.坐标转换.颜色管理以及文字布局等更精确的 ...
- java中interface的完整表述
我用一个工具:java Decompiler反编译工具查看jar包源码的时候,出现了以下代码: public abstract interface AbsITest{} 在网上搜索了一下: 我对这种情 ...
- [转]基于全注解的Spring3.1 mvc、myBatis3.1、Mysql的轻量级项目
摘要 对于现在主流的j2ee企业级开发而言,ssh(struts+hibernate+spring)依然是一个事实的标准.由struts充当的mvc调度控制:hibernate的orm持久化映射:sp ...
- .Net 2014 Connect() 相关文章合集
微软在11月中旬的Connect()研讨会中公布了一系列 2015年的发展规划,今天在MSDN Blog上看到了一篇比较全的相关文章合集,这里转录一下,感兴趣的朋友可以看看. Announcement ...
- winform 中设置窗体的默认焦点
转载:http://www.cnblogs.com/weekzero/p/3504513.html winform的窗体中,有时候需要设置默认焦点,有时候需要取消默认焦点. 设置默认焦点,最简单的方法 ...