首页 技术 正文
技术 2022年11月19日
0 收藏 519 点赞 3,960 浏览 721 个字

1、Page Should Contain

1.1存在页面上的内容

1.2 不存在页面上的内容,

运行抛异常

1.3 Page Should Not Contain

1.4

1.5 输入页面元素,判断

1.6Page Should Not Contain Element

不存在的页面元素,运行成功

1.7Page Should Not Contain Element

运行结果:报错

2、Page Should Contain Element

2.1

运行成功

2.2

3、更改id

4、Get Table Cell

5、Wait Until Page Contains Element

5.1 Wait Until Page Contains Element

5.2Wait Until Page Does Not Contain Element

5.3Wait Until Page Contains

5.4Wait Until Page Does Not Contain

Open Browser http://www.baidu.com gc
Maximize Browser Window
sleep 2
Comment Wait Until Page Contains 设置 #等待当前页面是否包含此文本 #如是则OK,不是抛异常
Comment Wait Until Page Does Not Contain 多测试 #等待当前页面不包含此文本 如不包含则OK,包含则抛异常
Comment Wait Until Page Contains Element id=kw #等待页面包含此元素 包含则OK,不包含则抛异常
Wait Until Page Does Not Contain Element id=duoceshi #等待页面不包含此元素 如不包含则OK,包含则抛异常
Comment Comment Input Text id=kw 多测师

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,078
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,553
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,402
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,177
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,814
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898