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

  • 相关阅读:
    linux的usr目录的全称是什么
    python多线程与多进程及其区别
    redis禁用危险命令
    测试文档
    mysql5.7.23windows安装
    Nginx如何处理手机端和PC端跳转不同页面
    nginx if多条件判断
    centos7单用户模式修改密码
    Django其四
    Django简单搭建编辑页面
  • 原文地址:https://www.cnblogs.com/xiaolehua/p/13782565.html
Copyright © 2011-2022 走看看