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 ...
随机推荐
- Struts2中使用Session
嗯,没错,过了这么长时间我还在做我的注册和登录. 登陆的部分自然是从数据库中查找响应的用户信息,然后把一个user放到session里, Action中代码如下: public String Logi ...
- Linux命令之head
head [选项] [文件] head命令输出文件开头部分,默认情况下显示文件的头10行.如果指定多个文件,每个文件前都有一个标题,给出文件名.如果没有指定文件,或当文件为-时,读取标准输入. (1) ...
- python 字符串,数学之间的不可描述的关系
首先说一下输入: >>> a=raw_input(" ") 1.234 >>> a '1.234' >>> 可以看到使用raw ...
- [SDOI2005]反素数ant
题目描述 对于任何正整数x,其约数的个数记作g(x).例如g(1)=1.g(6)=4. 如果某个正整数x满足:g(x)>g(i) 0<i<x,则称x为反质数.例如,整数1,2,4,6 ...
- [BZOJ4765]普通计算姬(分块+树状数组)
4765: 普通计算姬 Time Limit: 30 Sec Memory Limit: 256 MBSubmit: 1725 Solved: 376[Submit][Status][Discus ...
- POJ 2960 S-Nim 博弈论 sg函数
http://poj.org/problem?id=2960 sg函数几乎是模板题. 调试代码的最大障碍仍然是手残在循环里打错变量名,是时候换个hydra产的机械臂了[超想要.jpg] #includ ...
- 【凸包】【三分】Gym - 101309D - Dome of Circus
容易发现,圆锥体积和点的具体x.y坐标无关,只与其到z轴的距离sqrt(x*x+y*y)有关. 于是将这些三维的点都投射到二维的xOy平面的第二象限(sqrt(x*x+y*y),z),求个上凸壳,然后 ...
- Java字节码文件结构---概述
一.Class文件的结构概述: 是一连串的字节流(以自节为基本单位划分),里面包含的数据项按照固定的次序依次排列组成Class文件,文件内部不含分割符 当数据项的长度大于1B时候,按照高位在前的方式存 ...
- hdu 5236 Article 概率dp
Article Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=5236 ...
- Web安全测试指南--权限管理
垂直权限提升: 编号 Web_Author_01 用例名称 垂直权限提升测试 用例描述 测试用户是否具有使用超越其角色范围之外的权限. 严重级别 高 前置条件 1. 目标系统拥有不同等级的角色和权限 ...