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

  • 相关阅读:
    struts2 s:if 的字符串比较问题
    struts2 标签
    servlet filter
    div滚动与控制
    页面定位
    linux下编译利用CMakeLists.txt 编译C++写的opencv程序
    yolo image.c
    强制杀进程
    PDB GDB 调试代码
    YOLOv3的Darknet在OpenCV3.4.1(bug)下编译出错填坑
  • 原文地址:https://www.cnblogs.com/xiaolehua/p/13782565.html
Copyright © 2011-2022 走看看