dcsxlh

导航

 

 

 

 

 

 

 

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 多测师

posted on 2020-10-08 20:20  多测师_肖sir  阅读(398)  评论(0编辑  收藏  举报