zoukankan      html  css  js  c++  java
  • 多测师讲解自动化--rf断言(下)--_高级讲师肖sir

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

  • 相关阅读:
    清除浮动的方法
    网页滚动到顶部或底部加载
    任意两个数之间的随机数
    每五个一行
    js放大镜
    HTML5本地存储
    jquery checkbox radio 标签 选中的3种方法
    jquery mouseout mouseover 多次执行
    CentOS6.5安装MySQL5.7(也适合其他版本安装)
    ubuntu下ganglia3.7.2编译安装
  • 原文地址:https://www.cnblogs.com/xiaolehua/p/13782565.html
Copyright © 2011-2022 走看看